Hi, I'm writing a php script at the moment and I came across a minor problem...
I have this script right between the template html codes. Within the script I use if-else statement for error checking and whenever there's an error I use the exit(); function so the script won't go any further. Bu the problem is that the html just under the script won't display...
I think it's the exit(); that's doing it... Can anyone help me out on this? is there an alternative way? any way to getting around this problem?
Thanks.php questions in the php forum if the exit function is in the if statement then nothing after it will continue. it doesn't just break out of the if statement it stops the whole script.
I have this script right between the template html codes. Within the script I use if-else statement for error checking and whenever there's an error I use the exit(); function so the script won't go any further. Bu the problem is that the html just under the script won't display...
I think it's the exit(); that's doing it... Can anyone help me out on this? is there an alternative way? any way to getting around this problem?
Thanks.php questions in the php forum if the exit function is in the if statement then nothing after it will continue. it doesn't just break out of the if statement it stops the whole script.