尝试将数据导入我的编辑器以编辑我的博文时,我收到此错误。
未捕获错误:在布尔值
上调用成员函数bind_param()这是我的PHP代码
$stmt = $db->prepare('SELECT post_id, title, summary, body
FROM posts WHERE postID = :postID');
$stmt->execute(array(':postID' => $_GET['id']));
$row = $stmt->fetch();
这是我的HTML代码
<form action="" method="POST">
<input type='hidden' name='postID' value='<?php echo $row['post_id'];?>'>
<label for="title">Article title</label>
<input type="text" name="title" value="<?php echo $row['title'];?>"size="130"><br>
<label for="summary">Article summary</label>
<textarea name="summary" cols=130 rows=4 <?php echo $row['postDesc']?>></textarea><br>
<label for="body">Article content</label>
<textarea name="body" cols=130 rows=25 <?php echo $row['postDesc']?>></textarea><br>
<input type="submit" name="submit" value="update">
<a href="index.php" class="cancel">Cancel</a>
</form>