note 48067 added to function.mysqli-stmt-prepare

From: Date: Fri, 10 Dec 2004 11:56:35 +0000
Subject: note 48067 added to function.mysqli-stmt-prepare
Groups: php.notes 
Request: Send a blank email to php-notes+get-81642@lists.php.net to get a copy of this message
Hi, the code ($stmt = mysqli_stmt_prepare($stmt, "SELECT District FROM City WHERE Name=?")) { in the sample is wrong. mysqli_stmt_prepare returns a bool When using the code provided $stmt after the call to mysqli_stmt_prepare is a bool a not a mysqli-Statement any longer....may thus not be used in subsequent mysqli_* calls. Best wishes Bernhard ---- Manual Page -- http://www.php.net/manual/en/function.mysqli-stmt-prepare.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+48067 Delete -- http://master.php.net/manage/user-notes.php?action=delete+48067&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48067&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48067&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48067&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48067&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48067&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+48067&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#81642) next »