> I need help to track down the cause of the error,"Could not run query"
>
> A typical query is
>
> $laterrecords = mysql_query("SELECT * FROM messages WHERE `logged` >
> $timebegin ORDER BY `logged` DESC" ) or die ("Cannot
> select:$queryError: " . mysql_error());
Try putting single quotes
Have you tested this SQL query?
Insert it into phpmyadmin, does it work?
If it does => php error.
If it doesn't => mysql error.
boclair napsal(a):
I need help to track down the cause of the error,"Could not run query"
A typical query is
$laterrecords = mysql_query("SELECT * FROM messages WH