Lines Matching refs:res
24 if (!$res = mysql_query("SELECT id, label, id AS _id, CONCAT(label, 'a') _label, NULL as _foo FROM …
28 var_dump(mysql_result($res, -1));
29 var_dump(mysql_result($res, 2));
31 var_dump(mysql_result($res, 0, -1));
32 var_dump(mysql_result($res, 0, 500));
35 var_dump(mysql_result($res, 0));
36 var_dump(mysql_result($res, 0, 1));
38 var_dump(mysql_result($res, 0, 'id'));
39 var_dump(mysql_result($res, 0, '_test.id'));
40 var_dump(mysql_result($res, 0, 'label'));
41 var_dump(mysql_result($res, 0, '_test.label'));
43 var_dump(mysql_result($res, 0, 'unknown'));
44 var_dump(mysql_result($res, 0, '_test.'));
45 var_dump(mysql_result($res, 0, chr(0)));
46 var_dump(mysql_result($res, 0, '_test.' . chr(0)));
48 var_dump(mysql_result($res, 0, '_id'));
50 var_dump(mysql_result($res, 0, '_label'));
52 var_dump(mysql_result($res, 0, '_foo'));
53 var_dump(mysql_result($res, 0, 'test.id'));
54 var_dump(mysql_result($res, 0, 'test.label'));
56 mysql_free_result($res);
58 var_dump(mysql_result($res, 0));