In my code I am trying to query a database table with the following:
$queryLogItemsStatement = "SELECT FROM transactions WHERE user1ID='". $userID . "' ORDER BY date DESC";
$queryLogItems = mysql_query($queryLogItemsStatement, $connection);
while ($rowLog = mysql_fetch_array($queryLogItems)){ //line 33
}
but when I run it I get the error:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /Users/iddogino/Sites/serverFilesPayaway/user/logForUser.php on line 33
Now I know that the database connection works because I have used it successfully in the past...
What may the problem be?