View Single Post
  #1 (permalink)  
Old 2006-10-13, 08:50 PM
theinfomaster's Avatar
theinfomaster theinfomaster is offline
Junior Member
 
Join Date: Oct 2006
Posts: 5
theinfomaster is on a distinguished road
Default HELP(Writing MySQL databse data to web page)

Hi,
I have a problem, when I run this script the browser has a problem with the "{" at the bottom of this page. I have changed its color to red. What am I doing wrong?


<?php
$con = mysql_connect("localhost", "******", "******");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("theinfo_forum1", $con);
$result = mysql_query("SELECT * FROM person");
echo "<table border='1'>
<tr>
<th>Member#</th>
<th>UserName</th>
</tr>";while($row = mysql_fetch_array($result)
{
echo "<tr>";
echo "<td>" . $row['member_#'] . "</td>";
echo "<td>" . $row['member_name'] . "</td>";
echo "</tr>";
}
echo "</table>";mysql_close($con);
?>
Reply With Quote
Sponsored Links