Search

QuestionsSearch
Christian asked 7 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 7 years ago
Your Answer

17 + 9 =

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?