note 97338 added to mysqli-stmt.result-metadata

From: Date: Thu, 15 Apr 2010 07:52:18 +0000
Subject: note 97338 added to mysqli-stmt.result-metadata
Groups: php.notes 
Request: Send a blank email to php-notes+get-168255@lists.php.net to get a copy of this message
If result_metadata() returns false but error/errno/sqlstate tells you no error occurred, this means your query is one that does not produce a result set, i.e. an INSERT/UPDATE/DELETE query instead of a SELECT query. This is stated in the documentation where it says "If a statement passed to mysqli_prepare() is one that produces a result set, mysqli_stmt_result_metadata() returns the result object", but it might not be clear to everyone what this entails exactly. Hope this helps. ---- Server IP: 213.249.64.162 Probable Submitter: 81.18.251.213 ---- Manual Page -- http://www.php.net/manual/en/mysqli-stmt.result-metadata.php Edit -- https://master.php.net/note/edit/97338 Del: integrated -- https://master.php.net/note/delete/97338/integrated Del: useless -- https://master.php.net/note/delete/97338/useless Del: bad code -- https://master.php.net/note/delete/97338/bad+code Del: spam -- https://master.php.net/note/delete/97338/spam Del: non-english -- https://master.php.net/note/delete/97338/non-english Del: in docs -- https://master.php.net/note/delete/97338/in+docs Del: other reasons-- https://master.php.net/note/delete/97338 Reject -- https://master.php.net/note/reject/97338 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#168255) next »