Lines Matching refs:id
23 $stmt = $db->prepare("SELECT id, label FROM {$table} ORDER BY id ASC LIMIT 2");
25 $id = $label = null;
27 if (!$stmt->bindColumn(1, $id, PDO::PARAM_INT))
37 printf("id = %s (%s) / label = %s (%s)\n",
38 var_export($id, true), gettype($id),
40 $data[] = array('id' => $id, 'label' => $label);
43 $stmt = $db->query("SELECT id, label FROM {$table} ORDER BY id ASC LIMIT 2");
46 if ($row['id'] != $data[$index]['id']) {
47 … printf("[005] Fetch bound and fetch assoc differ - column 'id', bound: %s/%s, assoc: %s/%s\n",
48 var_export($data[$index]['id'], true), gettype($data[$index]['id']),
49 var_export($row['id'], true), gettype($row['id']));
63 $stmt = $db->prepare("SELECT id, label FROM {$table} ORDER BY id ASC LIMIT 2, 2");
65 $id = $label = null;
67 if (!$stmt->bindColumn(1, $id, PDO::PARAM_INT))
77 printf("id = %s (%s) / label = %s (%s)\n",
78 var_export($id, true), gettype($id),
80 $data[] = array('id' => $id, 'label' => $label);
83 $stmt = $db->query("SELECT id, label FROM {$table} ORDER BY id ASC LIMIT 2, 2");
86 if ($row['id'] != $data[$index]['id']) {
87 … printf("[010] Fetch bound and fetch assoc differ - column 'id', bound: %s/%s, assoc: %s/%s\n",
88 var_export($data[$index]['id'], true), gettype($data[$index]['id']),
89 var_export($row['id'], true), gettype($row['id']));
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)