|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-12-18 21:27 UTC] thbley at gmail dot com
Description:
------------
Please offer an easier interface to run prepared statements, e.g.
$db = new mysqli_db('127.0.0.1', 'root', 'some_pw', 'test');
foreach ($db->query('select * from bla where someint=? and somechar=?', MYSQLI_STORE_RESULT, [10, 'hello_world']) as $row) {...}
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 23:00:01 2025 UTC |
or sprintf-style instead of auto-detection: foreach ($db->query('select * from bla where someint=%d and somechar=%s', MYSQLI_STORE_RESULT, [10, 'hello_world']) as $row) {...}