[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-db
Subject:    Re: [PHP-DB] Could not run query
From:       90.176.148.82
Date:       2008-09-28 11:47:05
Message-ID: A8.90.22976.1BE6FD84 () pb1 ! pair ! com
[Download RAW message or body]

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

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic