04-01-2008, 06:47 AM
|
#3 (permalink)
|
|
The Wanderer
Join Date: Mar 2008
Posts: 7
Thanks: 2
|
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--------
|
|
|
|