Lines Matching refs:query
2 MySQL PDO:query() vs. PDO::prepare() and MySQL error 2050
27 $stmt = $db->query('SELECT id, label FROM test WHERE id = 1');
29 $stmt = $db->query('SELECT id, label FROM test WHERE id = 1');
35 $stmt = $db->query('SELECT id, label FROM test WHERE id = 1');
41 PDO::query() will prepare and execute a statement in one step.
42 After the execution of PDO::query(), MySQL expects you to fetch
44 PHP/PDO will send a CLOSE message as part of the PDO::query() call.
48 $stmt = PDO::query(<some query>)
56 $stmt = PDO::query(<some query>)
57 PDO::query(<some query>)
63 $stmt = PDO::query(<some query>)
82 - use prepare() + execute() instead of query()
84 - fix PDO::query() [not the driver, fix PDO itself]
87 $stmt = $db->query('SELECT id, label FROM test WHERE id = 1');
99 $stmt = $db->query('SELECT id, label FROM test WHERE id = 1');
103 $stmt = $db->query('SELECT id, label FROM test WHERE id = 1');