Lines Matching refs:label
22 $stmt1 = $db->query('SELECT id, label FROM test ORDER BY id ASC');
24 $stmt2 = $db->query('SELECT id, label FROM test ORDER BY id ASC');
29 $stmt1 = $db->query('SELECT id, label FROM test ORDER BY id ASC');
33 $stmt1 = $db->query('SELECT id, label FROM test ORDER BY id ASC');
39 $stmt2 = $db->prepare('UPDATE test SET label = ? WHERE id = ?');
52 if (!isset($row2['label']) || ('z' !== $row2['label']))
53 printf("Expecting array(id => 1, label => z) got %s\n", var_export($row2, true));
56 $stmt1 = $db->query('SELECT id, label FROM test ORDER BY id ASC');
58 $stmt2 = $db->query('SELECT id, label FROM test ORDER BY id ASC');
61 $stmt1 = $db->query('SELECT id, label FROM test ORDER BY id ASC');
67 $stmt2 = $db->prepare('UPDATE test SET label = ? WHERE id = ?');
79 $stmt = $db->prepare('SELECT id, label FROM test WHERE id > ? ORDER BY id ASC LIMIT 2');
86 $id = $label = null;
92 if (!$stmt->bindColumn(2, $label, PDO::PARAM_STR))
97 printf("in = %d -> id = %s (%s) / label = %s (%s)\n",
100 var_export($label, true), gettype($label));
158 in = 0 -> id = 1 (integer) / label = 'a' (string)
159 in = 0 -> id = 2 (integer) / label = 'b' (string)
163 in = 0 -> id = 1 (integer) / label = 'a' (string)
164 in = 0 -> id = 2 (integer) / label = 'b' (string)
169 in = 0 -> id = 1 (integer) / label = 'a' (string)
170 in = 0 -> id = 2 (integer) / label = 'b' (string)
174 in = 0 -> id = 1 (integer) / label = 'a' (string)
175 in = 0 -> id = 2 (integer) / label = 'b' (string)