Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Combo with Templates and Ajax .. How does it work ?

  1. #11
    Sencha User
    Join Date
    Jun 2012
    Posts
    35
    Vote Rating
    1
      0  

    Default

    How ? sorry I didn't get what you mean

  2. #12
    Sencha User Tim Toady's Avatar
    Join Date
    Feb 2010
    Location
    Pennsylvania
    Posts
    603
    Vote Rating
    284
      1  

    Default

    You are using string interpolation for variable $query. The only way I can see your sql returning unrelated data is if the variable $query does not contain the correct data. For instance, if you did not set it, it would probably return everything. You could verify it by echoing out your sql and making sure the value you typed in your combo is getting into the sql. Of course Ext will output an error, but you can see the sql in the response.

  3. #13
    Sencha User
    Join Date
    Jun 2012
    Posts
    35
    Vote Rating
    1
      0  

    Default

    Quote Originally Posted by Tim Toady View Post
    You are using string interpolation for variable $query. The only way I can see your sql returning unrelated data is if the variable $query does not contain the correct data. For instance, if you did not set it, it would probably return everything. You could verify it by echoing out your sql and making sure the value you typed in your combo is getting into the sql. Of course Ext will output an error, but you can see the sql in the response.
    Thanks a LOT!! It Finally Works !!

  4. #14
    Sencha User
    Join Date
    Jun 2012
    Posts
    35
    Vote Rating
    1
      0  

    Default

    Hello again,

    this was working great on localhost, but getting error when deployed to the server:
    Code:
    Undefined variable: query
    any idea ?

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •