Posts: 876
Name: Matt Pealing
Location: England, north west
|
PHP Code:
<?php //info list include "../conn.php"; $id=$_GET['id']; echo 'id is '.$id.'<br />'; $sql=mysql_query("SELECT * FROM work WHERE id='$id'"); if(!$sql) { echo mysql_error(); } echo '<li>'.mysql_result($sql, 1).'<li>'; ?>
I keep getting the following result
Quote:
id is 1
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 1 on MySQL result index 7 in /home/inspin/public_html/work/details.php on line 13
|
I dont know why, because id comes up as 1, and there is a row in the work table which has an id of 1!
|