Re: Parse Error

From: Date: Tue, 16 Jan 2001 03:27:04 +0000
Subject: Re: Parse Error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34748@lists.php.net to get a copy of this message
PHP parse error, or SQL parse error?... If it's PHP, you may need to look at the *previous* line, or even a bunch of lines before that if you are missing a { or } or have messed up quotes. If it's an SQL error, you probably don't have any data in $HTTP_POST_VARS['UserName'] or $HTTP_POST_VARS['Password'] It's a Good Idea to do this: $query = "Select * from Sky where SkyUName = '".$HTTP_POST_VARS['UserName']."' AND SkyPasswd = '".($HTTP_POST_VARS['Password'])."'"; #echo $query, "<BR>\n"; $sqlCheckLogin = sqlExecute($query); Then you can uncomment the query output to debug what your SQL looks like easily. ----- Original Message ----- From: "Wade Halsey" <whalsey@btech.co.za> Newsgroups: php.general Sent: Monday, January 15, 2001 12:16 AM Subject: [PHP] Parse Error Hi Im getting a parse error with this: $sqlCheckLogin = sqlExecute( "Select * from Sky where SkyUName = '".$HTTP_POST_VARS['UserName']."' AND SkyPasswd = '".($HTTP_POST_VARS['Password'])."'" ) ; Help!!!!

« previous php.general (#34748) next »