PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
A fairly new to php and have come up with a problem during my code.
The code gets events from my database and filters then depending on the 'type'. The problem i'm having is that if the results come back zero. The page doesn't appear. I understand there needs to be an IF statement in there somewhere but each time I have tried I have come across no success.
I don't have anything to test this on here at work... but did you try putting the if statement directly after obtaining mysql_num_rows()? Seems like the most logical solution to me.
Skiddles2010. Thanks for your advice. Made me look at the code differently.
Managed to fix the problem now. Just by adding this further down the code in the body.