Jump to content

Any reason why these if statements aren't working?


lalnfl

Recommended Posts

Here are the two if statements:

 

if (!($start <= 0)){

 

$prev_button = "<a href='forum.php?category_id=$category_id&start=$prev'>Prev</a>";

 

}

 

if (!($start >= $record_num - $per_page)){

 

$next_button = "<a href='forum.php?category_id=$category_id&start=$next'>Next</a>";

 

}

 

But they are not properly working. This is part of a pagination script for the next and previous buttons.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.