Re: [PHP] Re: Parse Error(newbie)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Kevin Lowe declared > Looks OK to me, could it be that youa re missing a semi colon ; or a brace } from a >previous line, in this case PHP often reports the parse error as being the line where >the next ; is? Yep, that would be me guess: a missing brace higher up in the script (or order of script) I'm always doing that! - -- Nick Wilson // www.tioka.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE89NWyHpvrrTa6L5oRAn6RAJwIu/7YB40v45sixV6nai7TJKFrngCbBKwW r2Rw1S22dMaCfZiijJ1EZ+4= =1KIA -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Parse Error(newbie)
Hi JJ, Looks OK to me, could it be that youa re missing a semi colon ; or a brace } from a previous line, in this case PHP often reports the parse error as being the line where the next ; is? EG $var1 = "x" $var2 = "y"; This will show an error on the second line. KEvin
[PHP] Re: Parse Error(Newbie)
In article <003601c20541$fdc31970$0100a8c0@JohnH>, [EMAIL PROTECTED] says... > I know it is probably something obvious but the following gives me a parse error and >as a newbie I am having trouble locating it. > > $query = "select * from news WHERE id = "$_get['id']""; > > JJ Harrison > [EMAIL PROTECTED] > www.tececo.com > $query = "select * from news WHERE id = " .$_get['id']; -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php