If/Else Exit

EDIT: OK this gets me Parse error: syntax error, unexpected T_BOOLEAN_AND in /home/infiniti/public_html/search.php on line 167


if (!((($s+$limit)/$limit)==$pages) && $pages!=1) && ($numrows > 0) {
$news=$s+$limit;
echo "&nbsp;<a href=\\"$PHP_SELF?s=$news&q=$var\\">Next 10 >></a>";}

Any idea why and how to fix it?

Thanks

thanks for helping me realize the problem :slight_smile:

Brackets all seem OK to me.

First problem is the brackets are mismatched.

this rite?


if (!((($s+$limit)/$limit)==$pages) && $pages!=1 && $numrows > 0) {
$news=$s+$limit;
echo "&nbsp;<a href=\\"$PHP_SELF?s=$news&q=$var\\">Next 10 >></a>";}