I need a second pair of eyes to look over what I am doing to see if I fubar'd something, cause I sure cant find it.
<?php
$link = mysql_connect("localhost", "login", "passwd") or die("Could not connect");
mysql_select_db("database_name", $link) or die("Could not select database");
$query_table = mysql_query("SELECT Email, Password, AcctType, IPAddress FROM customer",
$link);
print "<table>";
print "<tr align=left>";
print "<th>E-Mail</th><th>Password</th><th>Acct Type</th><th>IP Address</th></tr>";
while ($row = mysql_fetch_object($query_table))
{
print "<tr>";
print "<td>" . $row->Email . "</td>";
print "<td>" . $row->Password . "</td>";
print "<td>" . $row->AcctType . "</td>";
print "<td>" . $row->IPAddress . "</td>";
print "</tr>";
}
print "</table>";
?>
Error given:
Warning: Supplied argument is not a valid MySQL result resource in imm.php on line 12
What did I do wrong or typo on?
-- M