Lines Matching refs:label

23         $stmt = $db->prepare("SELECT id, label FROM {$table} ORDER BY id ASC LIMIT 2");
25 $id = $label = null;
31 if (!$stmt->bindColumn(2, $label, PDO::PARAM_STR))
37 printf("id = %s (%s) / label = %s (%s)\n",
39 var_export($label, true), gettype($label));
40 $data[] = array('id' => $id, 'label' => $label);
43 $stmt = $db->query("SELECT id, label FROM {$table} ORDER BY id ASC LIMIT 2");
51 if ($row['label'] != $data[$index]['label']) {
52 … printf("[006] Fetch bound and fetch assoc differ - column 'label', bound: %s/%s, assoc: %s/%s\n",
53 var_export($data[$index]['label'], true), gettype($data[$index]['label']),
54 var_export($row['label'], true), gettype($row['label']));
63 $stmt = $db->prepare("SELECT id, label FROM {$table} ORDER BY id ASC LIMIT 2, 2");
65 $id = $label = null;
71 if (!$stmt->bindColumn(2, $label, PDO::PARAM_STR))
77 printf("id = %s (%s) / label = %s (%s)\n",
79 var_export($label, true), gettype($label));
80 $data[] = array('id' => $id, 'label' => $label);
83 $stmt = $db->query("SELECT id, label FROM {$table} ORDER BY id ASC LIMIT 2, 2");
91 if ($row['label'] != $data[$index]['label']) {
92 … printf("[011] Fetch bound and fetch assoc differ - column 'label', bound: %s/%s, assoc: %s/%s\n",
93 var_export($data[$index]['label'], true), gettype($data[$index]['label']),
94 var_export($row['label'], true), gettype($row['label']));
113 id = 1 (integer) / label = 'a' (string)
114 id = 2 (integer) / label = 'b' (string)
115 id = 3 (integer) / label = 'c' (string)
116 id = 4 (integer) / label = 'd' (string)