moving companies : Computers : Programming : Languages : PHP : Common Problems : Code Execution

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 3 people (100%) answered Yes

Entry

A parse error seems to be specific to the first of 2 "endif" statements in a zip code checking script. Where should I begin to look to debug?

Feb 3rd, 2001 01:27
Philip Olson, Peter Simard,


First place to look is the line right above what's reported, then look 
at the actual line.  Then, make sure the statement follows the correct 
syntax as seen here :
    http://www.php.net/manual/en/control-structures.elseif.php