View Single Post
  #10 (permalink)  
Old 2006-10-14, 02:18 PM
theinfomaster's Avatar
theinfomaster theinfomaster is offline
Junior Member
 
Join Date: Oct 2006
Posts: 5
theinfomaster is on a distinguished road
Default

Lets see, That bit of code on the first post of this thread is the only part of the web page that has any PHP or MySQL code in it. I checked to see if I did something wrong in the HTML by copying and pasting it into an HTML document. Wonce I did that my software I use would have presented me with the error. Due to finding non I put comments around the strings 87-93 and tested this. All it did was change the line of code that had the error.
Here is the updated code to what I was told to do,
<?php
$con = mysql_connect("localhost", "******", "******");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("theinfo_forum1", $con);

$result = mysql_query("SELECT * FROM member_info");

echo "<table border='1'>
<tr>
<th>Member Email</th>
<th>UserName</th>
</tr>
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['UserName'] . "</td>";
echo "<td>" . $row['Email'] . "</td>";
echo "</tr>";
}
echo "</table>";

mysql_close($con);
?>


I still dont see any thing wrong with it. I guess I dont really understand. It has a problem with the "<>" on the tags were the Echo "<>" are.

Last edited by theinfomaster; 2006-10-14 at 02:41 PM.
Reply With Quote