More complex sql query

QuestionsMore complex sql query
Mattias Cederlund asked 4 years ago

Hi!

I want to add a query that only shows results where there are more than 2 rows in the table.

I would like to use a mysql_num_rows($result) that is >=2.

How can i do that?

1 Answers
Abu Ghufran answered 4 years ago

If you are using full version, you can use on_data_display event handler function, and check if the returned data array length <=2, empty the data array.

Refer demos/editing/custom-events.php for code.

Your Answer

20 + 17 =

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!