Forum Moderators: coopster
For example,
if($start!= 0) {
if($browse) { //for $_GET query
echo 'Previous</a> ¦ ';
}
else { //for $_POST query
echo 'Previous</a> ¦ ';
}
}
I am not putting the full version of codes down as that would be too much. But hopefully, you'll get what I mean. I have to list "echo 'Previous</a>' twice because one's for the get query and the other's for the post query. So a lot of duplicate codes. How could I shorten the codes a bit?