Lines Matching refs:id
22 $stmt = $db->prepare('SELECT id, label FROM test ORDER BY id ASC LIMIT 2');
24 $id = $label = null;
26 if (!$stmt->bindColumn(1, $id, PDO::PARAM_INT))
36 printf("id = %s (%s) / label = %s (%s)\n",
37 var_export($id, true), gettype($id),
39 $data[] = array('id' => $id, 'label' => $label);
42 $stmt = $db->query('SELECT id, label FROM test ORDER BY id ASC LIMIT 2');
45 if ($row['id'] != $data[$index]['id']) {
46 … printf("[005] Fetch bound and fetch assoc differ - column 'id', bound: %s/%s, assoc: %s/%s\n",
47 var_export($data[$index]['id'], true), gettype($data[$index]['id']),
48 var_export($row['id'], true), gettype($row['id']));
62 $stmt = $db->prepare('SELECT id, label FROM test ORDER BY id ASC LIMIT 2, 2');
64 $id = $label = null;
66 if (!$stmt->bindColumn(1, $id, PDO::PARAM_INT))
76 printf("id = %s (%s) / label = %s (%s)\n",
77 var_export($id, true), gettype($id),
79 $data[] = array('id' => $id, 'label' => $label);
82 $stmt = $db->query('SELECT id, label FROM test ORDER BY id ASC LIMIT 2, 2');
85 if ($row['id'] != $data[$index]['id']) {
86 … printf("[010] Fetch bound and fetch assoc differ - column 'id', bound: %s/%s, assoc: %s/%s\n",
87 var_export($data[$index]['id'], true), gettype($data[$index]['id']),
88 var_export($row['id'], true), gettype($row['id']));
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)