Lines Matching refs:query
13 if (!$res = $mysqli->query("SELECT * FROM test ORDER BY id LIMIT 2")) {
21 if (!$res = $mysqli->query("SELECT * FROM test ORDER BY id LIMIT 2")) {
29 if (!$res = $mysqli->query("SELECT * FROM test ORDER BY id LIMIT 2")) {
37 if (!$res = $mysqli->query("SELECT * FROM test ORDER BY id LIMIT 2")) {
48 if (!$res = $mysqli->query("SELECT * FROM test ORDER BY id LIMIT 2")) {
58 if (!$res = $mysqli->query("SELECT 1 AS a, 2 AS a, 3 AS c, 4 AS C, NULL AS d, true AS e")) {
59 printf("[010] Cannot run query, [%d] %s\n", $mysqli->errno, $$mysqli->error);
65 if (!$res = $mysqli->query("SELECT 1 AS a, 2 AS b, 3 AS c, 4 AS C")) {
66 printf("[018] Cannot run query, [%d] %s\n",
84 if (!$link->query("DROP TABLE IF EXISTS test")) {
89 …if (!$link->query(sprintf("CREATE TABLE test(id INT NOT NULL, label %s, PRIMARY KEY(id)) ENGINE = …
95 if (!$link->query($sql = sprintf("INSERT INTO test(id, label) VALUES (1, NULL)"))) {
101 … if (!$link->query($sql = "INSERT INTO test(id, label) VALUES (1, '" . $sql_value . "')")) {
106 … if (!$link->query($sql = sprintf("INSERT INTO test(id, label) VALUES (1, '%d')", $sql_value))) {
113 if (!$res = $link->query("SELECT id, label FROM test")) {