Lines Matching refs:label

21         $stmt = $db->prepare('SELECT id, label FROM test ORDER BY id ASC LIMIT 2');
23 $id = $label = null;
29 if (!$stmt->bindColumn(2, $label, PDO::PARAM_STR))
35 printf("id = %s (%s) / label = %s (%s)\n",
37 var_export($label, true), gettype($label));
38 $data[] = array('id' => $id, 'label' => $label);
41 $stmt = $db->query('SELECT id, label FROM test ORDER BY id ASC LIMIT 2');
49 if ($row['label'] != $data[$index]['label']) {
50 … printf("[006] Fetch bound and fetch assoc differ - column 'label', bound: %s/%s, assoc: %s/%s\n",
51 var_export($data[$index]['label'], true), gettype($data[$index]['label']),
52 var_export($row['label'], true), gettype($row['label']));
61 $stmt = $db->prepare('SELECT id, label FROM test ORDER BY id ASC LIMIT 2, 2');
63 $id = $label = null;
69 if (!$stmt->bindColumn(2, $label, PDO::PARAM_STR))
75 printf("id = %s (%s) / label = %s (%s)\n",
77 var_export($label, true), gettype($label));
78 $data[] = array('id' => $id, 'label' => $label);
81 $stmt = $db->query('SELECT id, label FROM test ORDER BY id ASC LIMIT 2, 2');
89 if ($row['label'] != $data[$index]['label']) {
90 … printf("[011] Fetch bound and fetch assoc differ - column 'label', bound: %s/%s, assoc: %s/%s\n",
91 var_export($data[$index]['label'], true), gettype($data[$index]['label']),
92 var_export($row['label'], true), gettype($row['label']));
111 id = 1 (integer) / label = 'a' (string)
112 id = 2 (integer) / label = 'b' (string)
113 id = 3 (integer) / label = 'c' (string)
114 id = 4 (integer) / label = 'd' (string)