Lines Matching refs:label

22         $stmt = $db->prepare("SELECT id, label FROM {$table} WHERE id > ? ORDER BY id ASC LIMIT 2");
29 $id = $label = null;
35 if (!$stmt->bindColumn(2, $label, PDO::PARAM_STR))
40 printf("in = %d -> id = %s (%s) / label = %s (%s)\n",
43 var_export($label, true), gettype($label));
48 printf("in = %d -> id = %s (%s) / label = %s (%s)\n",
51 var_export($label, true), gettype($label));
55 $stmt = $db->prepare("INSERT INTO {$table}(id, label) VALUES (100, ?)");
56 $label = null;
57 if (!$stmt->bindParam(1, $label))
66 $stmt = $db->prepare("SELECT id, NULL AS _label FROM {$table} WHERE label IS NULL");
69 $id = $label = 'bogus';
74 if (!$stmt->bindColumn(2, $label, PDO::PARAM_STR))
79 printf("in = %d -> id = %s (%s) / label = %s (%s)\n",
82 var_export($label, true), gettype($label));
131 in = 0 -> id = 1 (integer) / label = 'a' (string)
132 in = 0 -> id = 2 (integer) / label = 'b' (string)
134 in = 0 -> id = 1 (integer) / label = 'a' (string)
135 in = 0 -> id = 2 (integer) / label = 'b' (string)
137 in = 0 -> id = 100 (integer) / label = NULL (NULL)
139 in = 0 -> id = 1 (integer) / label = 'a' (string)
140 in = 0 -> id = 2 (integer) / label = 'b' (string)
142 in = 0 -> id = 1 (integer) / label = 'a' (string)
143 in = 0 -> id = 2 (integer) / label = 'b' (string)
145 in = 0 -> id = 100 (integer) / label = NULL (NULL)
148 in = 0 -> id = 1 (integer) / label = 'a' (string)
149 in = 0 -> id = 2 (integer) / label = 'b' (string)
151 in = 0 -> id = 1 (integer) / label = 'a' (string)
152 in = 0 -> id = 2 (integer) / label = 'b' (string)
154 in = 0 -> id = 100 (integer) / label = NULL (NULL)
156 in = 0 -> id = 1 (integer) / label = 'a' (string)
157 in = 0 -> id = 2 (integer) / label = 'b' (string)
159 in = 0 -> id = 1 (integer) / label = 'a' (string)
160 in = 0 -> id = 2 (integer) / label = 'b' (string)
162 in = 0 -> id = 100 (integer) / label = NULL (NULL)