Lines Matching refs:query
2 MySQL PDO:query() vs. PDO::prepare() and MySQL error 2050
28 $stmt = $db->query('SELECT id, label FROM test WHERE id = 1');
30 $stmt = $db->query('SELECT id, label FROM test WHERE id = 1');
36 $stmt = $db->query('SELECT id, label FROM test WHERE id = 1');
42 PDO::query() will prepare and execute a statement in one step.
43 After the execution of PDO::query(), MySQL expects you to fetch
45 PHP/PDO will send a CLOSE message as part of the PDO::query() call.
49 $stmt = PDO::query(<some query>)
57 $stmt = PDO::query(<some query>)
58 PDO::query(<some query>)
64 $stmt = PDO::query(<some query>)
83 - use prepare() + execute() instead of query()
85 - fix PDO::query() [not the driver, fix PDO itself]
88 $stmt = $db->query('SELECT id, label FROM test WHERE id = 1');
100 $stmt = $db->query('SELECT id, label FROM test WHERE id = 1');
104 $stmt = $db->query('SELECT id, label FROM test WHERE id = 1');