Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » execute query: website server has not been able to respond

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

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

Page: 1
Go to End
Author Topic: 1168 Views
  • bebabeba
    Avatar
    Community Member
    192 Posts

    execute query: website server has not been able to respond Link to this post

    HI!
    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.

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: execute query: website server has not been able to respond Link to this post

    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

    1168 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.