|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-11-30 12:36 UTC] georg@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 09:00:02 2025 UTC |
Description: ------------ mysqli_prepare() and mysqli->prepare() returns "Unknown command" error. I have tryed that with MySQL versions 4.1.5, 5.0.0a and 5.0.1. The result was just the same. Reproduce code: --------------- $db = new mysqli(HOSTNAME, USERNAME, PASSWORD, DATABASE); $st = $db->prepare("SELECT id, name FROM test WHERE name = ?"); if (!$st) echo $db->error; // "Unknown command"