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" <[EMAIL PROTECTED]>
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!!!!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]