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 WHERE `logged` > $timebegin ORDER BY `logged` DESC" ) or die ("Cannot select:<br>$query<br>Error: " . mysql_error());


PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to