xaero
11-22-2002, 08:16 PM
<?php
// Connect to the database
$db = mysql_connect("localhost","root","");
mysql_select_db (registered);
// Ask the database for the information from the links table
echo "<table border = '0' width = '100%' align='center'>";
$query = "SELECT * FROM 'people'";
$result = mysql_query($query);
while ($rows = mysql_fetch_row($result)) //<-- row 10 prob. line
// Here we make the script keep making new rows until all the links in our database are shown, this is called a loop
{
echo "<tr><td><A HREF='$rows[2]'>$rows[1]</A></td></tr>";
}
echo "</table>";
?>
Someone suggested that code, it eliminated my last problem however not when i call the page i get:
Parse error: parse error in /var/www/gaming/register/view.php on line 10
Anyone know what is wrong??
email me or reply here if you know what the problem is. Thanks alot.
// Connect to the database
$db = mysql_connect("localhost","root","");
mysql_select_db (registered);
// Ask the database for the information from the links table
echo "<table border = '0' width = '100%' align='center'>";
$query = "SELECT * FROM 'people'";
$result = mysql_query($query);
while ($rows = mysql_fetch_row($result)) //<-- row 10 prob. line
// Here we make the script keep making new rows until all the links in our database are shown, this is called a loop
{
echo "<tr><td><A HREF='$rows[2]'>$rows[1]</A></td></tr>";
}
echo "</table>";
?>
Someone suggested that code, it eliminated my last problem however not when i call the page i get:
Parse error: parse error in /var/www/gaming/register/view.php on line 10
Anyone know what is wrong??
email me or reply here if you know what the problem is. Thanks alot.
