Re: Could not run query
| From: | Martin Zvarík | Date: | Sun, 28 Sep 2008 10:25:53 +0000 |
| Subject: | Re: Could not run query | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-45487@lists.php.net to get a copy of this message | ||
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 WHERElogged> $timebegin ORDER BYloggedDESC" ) or die ("Cannot select:<br>$query<br>Error: " . mysql_error()); Louise