|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-08-05 11:50 UTC] chenxi at shine dot com dot cn
Description:
------------
give me following error message:
Warning: mysqli_prepare() [function.mysqli-prepare]: Error (00000/1047): Unknown command in /shine/htdocs/test.php on line 16
Reproduce code:
---------------
$mysqli = new mysqli("localhost", "root", "root", "hotel");
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
if ($stmt = $mysqli->prepare($link, "SELECT id, name FROM program")) {
$stmt->execute();
$stmt->bind_result($col1, $col2);
while ($stmt->fetch()) {
printf("%i %s\n", $col1, $col2);
}
$stmt->close();
} else {
print "stmt failed<br/>";
}
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 01:00:01 2025 UTC |
i make a mistake: $stmt = $mysqli->prepare("SELECT id, name FROM program")