My database code is
SELECT `Title`,`Rating`,`Times_Played` from audio WHERE 'Username'='Hamburger7'
There are no entries where the username is equal to Hamburger7
, but it selects two entries anyway. Instead of choosing entries that match the condition, it chooses the ones that are equal to '0'
, (as opposed to NULL).
The output on my PHP admin page, where the server settings are, is:
SELECT `Title` , `Rating` , `Times_Played`
FROM audio
WHERE `Username` = 'Hamburger7'
LIMIT 0 , 30