0

由于某种原因,我的 MySQLi 查询没有显示任何变量,并且 while(){ 函数之间的所有代码都没有显示。

任何帮助表示赞赏

$stmt = $db->prepare("SELECT `postedby`,`headline`,`article`,`date`,`image`,`imagecaption` FROM `blogentries` WHERE `ID` = ? LIMIT 1,1");
//Prepare, bind and execute statement
$stmt->bind_param("i", $id);
$stmt->execute( ) or die ("Could not execute statement");
$stmt->store_result();
$stmt->bind_result($postedby, $headline, $article, $date, $image, $imagecaption);
while ($stmt->fetch()) {
?>
4

0 回答 0