Search

QuestionsSearch
Christian asked 3 years ago

Hello to all,

I have en existing pager where a form search form is integrated. There are many field in this form, the Where condition is generated .

If ($_POST["submit"] {

$sql = "SELECT fields From table WHERE… "
} else {
$sql = "SELECT fields From ….WIHTOUT WHERE"
}
The results have the same fields.

Now I want the grid with the Data

$grid = new …..
$grid->SelectCommand = $sql;

But in every Case I get the result of the SQL Statement without WHERE. With echo $sql I checked the Statements…they are correct.

Is it possible to use the grid this Way?

Thanks for your help

1 Answers
Abu Ghufran answered 3 years ago
Your Answer

12 + 12 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!