Lines Matching refs:label

19         $stmt = $db->prepare('SELECT id, label FROM test WHERE id > ? ORDER BY id ASC LIMIT 2');
26 $id = $label = null;
32 if (!$stmt->bindColumn(2, $label, PDO::PARAM_STR))
37 printf("in = %d -> id = %s (%s) / label = %s (%s)\n",
40 var_export($label, true), gettype($label));
45 printf("in = %d -> id = %s (%s) / label = %s (%s)\n",
48 var_export($label, true), gettype($label));
52 $stmt = $db->prepare('INSERT INTO test(id, label) VALUES (100, ?)');
53 $label = null;
54 if (!$stmt->bindParam(1, $label))
63 $stmt = $db->prepare('SELECT id, NULL AS _label FROM test WHERE label IS NULL');
66 $id = $label = 'bogus';
71 if (!$stmt->bindColumn(2, $label, PDO::PARAM_STR))
76 printf("in = %d -> id = %s (%s) / label = %s (%s)\n",
79 var_export($label, true), gettype($label));
127 in = 0 -> id = 1 (integer) / label = 'a' (string)
128 in = 0 -> id = 2 (integer) / label = 'b' (string)
130 in = 0 -> id = 1 (integer) / label = 'a' (string)
131 in = 0 -> id = 2 (integer) / label = 'b' (string)
133 in = 0 -> id = 100 (integer) / label = NULL (NULL)
135 in = 0 -> id = 1 (integer) / label = 'a' (string)
136 in = 0 -> id = 2 (integer) / label = 'b' (string)
138 in = 0 -> id = 1 (integer) / label = 'a' (string)
139 in = 0 -> id = 2 (integer) / label = 'b' (string)
141 in = 0 -> id = 100 (integer) / label = NULL (NULL)
144 in = 0 -> id = 1 (integer) / label = 'a' (string)
145 in = 0 -> id = 2 (integer) / label = 'b' (string)
147 in = 0 -> id = 1 (integer) / label = 'a' (string)
148 in = 0 -> id = 2 (integer) / label = 'b' (string)
150 in = 0 -> id = 100 (integer) / label = NULL (NULL)
152 in = 0 -> id = 1 (integer) / label = 'a' (string)
153 in = 0 -> id = 2 (integer) / label = 'b' (string)
155 in = 0 -> id = 1 (integer) / label = 'a' (string)
156 in = 0 -> id = 2 (integer) / label = 'b' (string)
158 in = 0 -> id = 100 (integer) / label = NULL (NULL)