Re: [SLUG] {SPAM?} Help with PHP,HTML and MySql

From: ethan zimmerman (lists@ethanzimmerman.com)
Date: Sat Aug 21 2004 - 19:41:41 EDT


D'oh! i forgot to add "i++;" at the end of thw while loop it should look
like this

while ($i < $num)
{
  $first=mysql_result($result,$i,"first");
  echo "<p>First Name: $first</p>";
  $last=mysql_result($result,$i,"last");
  echo "<p>Last Name: $last</p>";
  $date=mysql_result($result,$i,"date");
  echo "<p>Date of Occurrence: $date</p>";
  i++;
}
?>

told you it was done quickly :-)

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:06:57 EDT