Lines Matching refs:label

22         $stmt = $db->prepare('SELECT id, label FROM test ORDER BY id ASC LIMIT 2');
24 $id = $label = null;
30 if (!$stmt->bindColumn(2, $label, PDO::PARAM_STR))
36 printf("id = %s (%s) / label = %s (%s)\n",
38 var_export($label, true), gettype($label));
39 $data[] = array('id' => $id, 'label' => $label);
42 $stmt = $db->query('SELECT id, label FROM test ORDER BY id ASC LIMIT 2');
50 if ($row['label'] != $data[$index]['label']) {
51 … printf("[006] Fetch bound and fetch assoc differ - column 'label', bound: %s/%s, assoc: %s/%s\n",
52 var_export($data[$index]['label'], true), gettype($data[$index]['label']),
53 var_export($row['label'], true), gettype($row['label']));
62 $stmt = $db->prepare('SELECT id, label FROM test ORDER BY id ASC LIMIT 2, 2');
64 $id = $label = null;
70 if (!$stmt->bindColumn(2, $label, PDO::PARAM_STR))
76 printf("id = %s (%s) / label = %s (%s)\n",
78 var_export($label, true), gettype($label));
79 $data[] = array('id' => $id, 'label' => $label);
82 $stmt = $db->query('SELECT id, label FROM test ORDER BY id ASC LIMIT 2, 2');
90 if ($row['label'] != $data[$index]['label']) {
91 … printf("[011] Fetch bound and fetch assoc differ - column 'label', bound: %s/%s, assoc: %s/%s\n",
92 var_export($data[$index]['label'], true), gettype($data[$index]['label']),
93 var_export($row['label'], true), gettype($row['label']));
112 id = 1 (integer) / label = 'a' (string)
113 id = 2 (integer) / label = 'b' (string)
114 id = 3 (integer) / label = 'c' (string)
115 id = 4 (integer) / label = 'd' (string)