This topic is locked

Not Empty Search

5/27/2008 8:12:26 AM
PHPRunner General questions
R
Rei author

Hello, how can I avoid that is made empty search in Page List?

J
Jane 5/27/2008

Rei,
try to use following code in the List page: Before SQL query event on the Events tab:

if (@$_REQUEST["a"]=="search" && !@$_REQUEST["SearchFor"] && !@$_REQUEST["SearchField"])

$strWhereClause = whereAdd($strWhereClause,"1=0");