note 107611 added to mysqli.prepare
| From: | Bernievan' | Date: | Tue, 21 Feb 2012 22:53:47 +0000 |
| Subject: | note 107611 added to mysqli.prepare | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186263@lists.php.net to get a copy of this message | ||
Using bind_result etc in prepared statements yields PHP data closely matched in type to that
specified in the database saving quite a bit of type casting later.
Contrast this to get_result() / fetch_assoc() method which by default yields all values as strings,
although if changing to stored procedures the results will at least be consistent with the old way.
----
Server IP: 69.147.83.197
Probable Submitter: 165.228.140.126
----
Manual Page -- http://www.php.net/manual/en/mysqli.prepare.php
Edit -- https://master.php.net/note/edit/107611
Del: integrated -- https://master.php.net/note/delete/107611/integrated
Del: useless -- https://master.php.net/note/delete/107611/useless
Del: bad code -- https://master.php.net/note/delete/107611/bad+code
Del: spam -- https://master.php.net/note/delete/107611/spam
Del: non-english -- https://master.php.net/note/delete/107611/non-english
Del: in docs -- https://master.php.net/note/delete/107611/in+docs
Del: other reasons-- https://master.php.net/note/delete/107611
Reject -- https://master.php.net/note/reject/107611
Search -- https://master.php.net/manage/user-notes.php