View Single Post
Old 04-01-2008, 06:47 AM   #3 (permalink)
Face_Of_Boe
The Wanderer
 
Join Date: Mar 2008
Posts: 7
Thanks: 2
Face_Of_Boe is on a distinguished road
Default

Sorry not ferry smart of me not to include that.

The problem with this script is when i have two records in my db for acsample:
test the name & test the name2
it displays both of them in stead of just one, and i have no clue how to make it work around this.

PHP Code:
<?php
include ("connect.php");

mysql_select_db("test_db"$con);

$result mysql_query("SELECT * FROM test");

while(
$row mysql_fetch_array($result))
  {
  echo 
"<td>" $row['name'] . "</td>";
  }
mysql_close($con);

?>
------edit--------
sorry for the <td> tags forgot to edit em out
------edit--------
Face_Of_Boe is offline  
Reply With Quote