Here's my code:
<?php
$username = $HTTP_POST_VARS['username'];
$password = $HTTP_POST_VARS['password'];
$db = mysql_connect("localhost", "root");
mysql_select_db("bhiclients",$db);
$result = mysql_query("SELECT * FROM users WHERE username=$username");
$row = mysql_fetch_array($result, MYSQL_ASSOC);
echo '<html><head></head><body>';
echo '</body></html>';
?>
Here's the error message I get:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\inetpub\wwwroot\clientadmin\login.php on line 8
WTF?!
Any help is appreciated.. 🙂