Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xswapco/public_html/techsupport/account.php on line 41
This is the error I get when I try to run this code...
<?
$username = $_SESSION['loggedIn'];
//echo $username;
$query = mysql_query("SELECT * FROM tblProblems WHERE username LIKE '$username' LIMIT 10");
while ($row = mysql_fetch_array($query))
{
$variable1=$row["problem"];
$variable2=$row["date"];
echo $variable1;
echo $variable2;
}
?>
Any ideas what could be wrong? Ive checked case, and spelling, not really sure what else it could be.