Re: Could not run query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux