Re: Parse error on blank line...

From: Date: Mon, 05 Feb 2001 22:34:16 +0000
Subject: Re: Parse error on blank line...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-38327@lists.php.net to get a copy of this message
argh, nm, I'm an idiot. ----- Original Message ----- From: "April" <april@ponymail.com> To: "Jackson, Michael" <Michael.Jackson@lightyearcom.com>; <php-general@lists.php.net> Sent: Monday, February 05, 2001 4:31 PM Subject: Re: [PHP] Parse error on blank line... > You missed a } in there. Inside of that else, you have an if, but you never > close the else. > > > 190 showmainscreen(); > > 191 } > > 192 > > should be > > > 190 showmainscreen(); > > 191 } > > 192 } > > ----- Original Message ----- > From: "Jackson, Michael" <Michael.Jackson@lightyearcom.com> > To: <php-general@lists.php.net> > Sent: Monday, February 05, 2001 4:23 PM > Subject: [PHP] Parse error on blank line... > > > > Hello all, > > > > I hope this doesn't turn out to be a stupid question, but we will > > see... I am getting parse errors on blank lines. Not commented, but > > totally blank. And seemingly no matter how I manipulate the text, it > turns > > out to always be on the same line. I'm using vim with syntax tags to help > > me check my basic syntax, and everything seems to be closed - I am at a > > total loss as to what could be wrong! Let me try to clarify: Take the > > following snippet of code - It errors out on line 193. I have no idea > why. > > I added blank lines to shift the code around - and if I eliminated all of > > the blank lines, I still error out on 193. > > > > 001 <?php > > > > ..... > > > > > > 181 ############## > > 182 # BEGIN CODE # > > 183 ############## > > 184 > > 185 if ($goodtogo != "yes") { > > 186 sanitize_session(); > > 187 } > > 188 else { > > 189 if ($state == "main") { > > 190 showmainscreen(); > > 191 } > > 192 > > > 193 > > 194 > > 195 > > 196 elseif ($state == "add") { > > 197 adduser($product,$username); > > 198 } > > 199 elseif ($state == "search") { > > 200 searchuser($username); > > 201 } > > 202 else { > > 203 doh(); > > 204 } > > 205 } > > 206 > > 207 ############ > > 208 # END CODE # > > 209 ############ > > 210 ?> > > > > Any help is greatly appreciated! > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#38327) next »