Query Not Executing Correctly
Posted: Wed Sep 22, 2004 4:13 am
Morning all.
I've looked at this until I'm blue in the face and for some reason can't see the problem.
My query returns an error saying it is empty but I know the values exist in the table. Can anyone see what I'm missing...?
Thanks for taking a look.
I've looked at this until I'm blue in the face and for some reason can't see the problem.
My query returns an error saying it is empty but I know the values exist in the table. Can anyone see what I'm missing...?
Code: Select all
$Query = mysql_query("SELECT * FROM events
WHERE EventCode == 'PMJ';
ORDER BY EventTime DESC");
$Data = mysql_query($Query) or die("Error: " . mysql_error());
while($row = mysql_fetch_array($Query))