note 107611 deleted from mysqli.prepare by tularis
| From: | tularis@php.net | Date: | Wed, 22 Feb 2012 20:58:06 +0000 |
| Subject: | note 107611 deleted from mysqli.prepare by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-186287@lists.php.net to get a copy of this message | ||
Note Submitter: Bernie van't Hof
----
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.