Re: Getting errors, need help
| From: | David | Date: | Tue, 17 Dec 2002 06:07:35 +0000 |
| Subject: | Re: Getting errors, need help | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17463@lists.php.net to get a copy of this message | ||
Thank you for your reply. I just caught it and corrected it. But now my
login does nothing.
I am going to repost it with a diffrent subject line
David
"Joseph W. Goff" <jgoff@users.sourceforge.net> wrote in message
news:005401c2a521$8ecae2c0$bdcaa8c0@jg42000...
> The line just above 43 does not contain a semi-colon.
>
> ----- Original Message -----
> From: "David" <cddllc@hotmail.com>
> To: <php-windows@lists.php.net>
> Sent: Sunday, December 15, 2002 7:18 PM
> Subject: [PHP-WIN] Getting errors, need help
>
>
> > Hello all,
> >
> > I am new to PHP so I am going to need some help.
> >
> > I am trying to create a admin login page. But I am getting this error
> > message:
> >
> > Parse error: parse error, unexpected T_VARIABLE in c:\program
files\apache
> > group\apache\htdocs\sunwestsilver\admin\tmpi5pcf76sy9.php on line 43
> >
> > tmpi5pcf76sy9.php is generated by Dreamweaver MX as a temp file from
> > admin.php
> >
> > It is coming from this line:
> >
> > this is line 43 code
> >
> > # $myquery = .'" AND password = '" . crypt($password,
> > "xpz8ty") . "'";
> >
> > The complete code is:
> >
> > // Query Database with username and encrypted password
> > #$myquery = "SELECT * FROM user WHERE username = '" . $user
> > #$myquery = .'" AND password = '" . crypt($password,
> > "xpz8ty") . "'";
> > #$result = mysql_query($myquery);
> > #if (!$result)
> > #{
> > # $error = "Cannot run Query";
> > #return($error);
> > #}
> >
> > Any help will be nice.
> >
> > I got this code from Dreamweaver MX: PHP Web Development pg. 257
> >
> > Thanks
> >
> > David
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>