Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

execute query: website server has not been able to respond

Go to End

2 Posts   1431 Views


Community Member, 193 Posts

26 November 2008 at 11:27pm

I execute my query correctly and I'm able to see result in my template. If I add where clause I have that error:website server has not been able to respond.
to see if query is correct i print my query in a txt file and I see:

SELECT * FROM ricercapollsubmission WHERE (tipolgia = 1 AND nome = elisa)

so this seems correct. Why I have this problem?this is my query:

$sqlQuery = new SQLQuery();
$sqlQuery->select = array("*");
$sqlQuery->from = array("ricercapollsubmission");
$sqlQuery->where = array("tipolgia = 1 AND nome = elisa");

//echo $sqlQuery . "<br><br>" ;
$res = $sqlQuery->execute();

after execute i have that error.


Forum Moderator, 5523 Posts

27 November 2008 at 9:40am

Put the site into dev mode, this will output the proper error rather then the generic error message. You can do this by adding 'Director::set_environment_type("dev");' to you mysite/_config.php file