Edit report at https://bugs.php.net/bug.php?id=63799&edit=1

 ID:                 63799
 User updated by:    thbley at gmail dot com
 Reported by:        thbley at gmail dot com
 Summary:            Make interface for prepared statements easier
 Status:             Open
 Type:               Feature/Change Request
 Package:            MySQLi related
 Operating System:   win7 x64
 PHP Version:        5.5.0alpha1
 Block user comment: N
 Private report:     N

 New Comment:

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) {...}


Previous Comments:
------------------------------------------------------------------------
[2012-12-18 21:27:07] 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) {...}



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=63799&edit=1

Reply via email to