Re: Could not run query
| From: | Martin Zvarík | Date: | Sun, 28 Sep 2008 11:47:05 +0000 |
| Subject: | Re: Could not run query | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-45489@lists.php.net to get a copy of this message | ||
The quotes are OK.
Tested - works.
danaketh napsal(a):
Well, seems to me like a problem with quotes you're using in query... The ` quotes you're using doesn't work, when I tried to use them in PHP called query. Maybe you should try use single quotes and if they works. 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