[size=3]$stmt2 = $connect->prepare("INSERT INTO `posts` (`body`, `date_added`,
`added_by`, `posted_to`, `user_id`) VALUES(?, ?, ?, ?, ?)");
if (false == $stmt2) {
die('prepare() failed ' . htmlspecialchars($stmt2->error));
}
$rc = $stmt2->bind_param('ssssi', $body, $date_added, $added_by, $posted_to, $id);
if (false == $rc) {
die('bind_param() failed ' . htmlspecialchars($stmt2->error));
}
$stmt2->execute();
if (false == $rc) {
die('execute() failed ' . htmlspecialchars($stmt2->error));
}
var_dump($stmt2);
$stmt2->close();
}[/size]