Posted by Terry on 10/09/07 15:17
Hi folks.
I am just starting to dabble in php.
I am trying to do some simple pagination in php/mysql.
For whatever reason I am only getting the first digit of my result.
For example:
$result = mysql_query("select lamp_no from lamps as l where id=20");
$row = mysql_fetch_array($result);
echo "20 = " . $row[0]['l']
only displays 1 it should have displayed 15 for me.
Thanks,
Terry
Navigation:
[Reply to this message]
|