|  | Posted by UKuser on 02/06/06 21:45 
For a further example, I have some example code in a book (part of thefull code):
 
 if (isset($left))
 {
 query = "SELECT id, name, email FROM addressbook WHERE id < $id " .
 "ORDER BY id DESC";
 $result = mysql_query($query);
 check_mysql();
 $row = mysql_fetch_row($result);
 check_mysql();
 if ($row[0] > 0)
 {
 $id = $row[0];
 $name = $row[1];
 $email = $row[2];
 }
 }
 
 Problem is, this code means you have to scroll through each record.
 What I would like is for all the results to be displayed and editable.
 Therefore you rather than just having <input type="text" name="name"
 value="\php bits $name"> it would display lots of rows depending on the
 query results.
 
 Thanks
  Navigation: [Reply to this message] |