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!
I am attempting to create a php script for a golf website, the problem is that I am new to PHP and I have become stuck as I can't see were the error lies in the below code. The script calculates based on the variables but I thought I would have a number returned at the end of the script but nothing is displayed can anyone see any errors?
I have automatically set the variables to 4 so I can see if the script is calucalting correctly, once the script is working the values will be determined from an entry in a form.
if you want to know what the script is supposed to add up like let me know an I will do my best to explain or look up stableford points in golf.
I have amended the code to the below adding in "==" to the if statements at the end to set as equals but nothing is returned no errors, no responses. Please help.
Thank You
*** PLEASE USE THE PHP TAG WHEN POSTING CODE ***
*** ALSO, YOU CAN EDIT YOUR PREVIOUS POST RATHER THAN ADDING POSTS ***
Thank you for your assistance I have made the changes to the IF statements at the bottom of the script as you suggested, the else if statement in the script should have been a range of "18" as opossed to the "1" my mistake.
After changing the script to include 18 in the For statement I now get the following message any suggestions?
Fatal error: Maximum execution time of 30 seconds exceeded in C:\AppServ\www\stableford-point-script.php on line 15
Thank You so much for all your help I do have issues out standing but they are down to my false calculations at the bottom of the script. Once again thank you so much.