Re: Get error message, need help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you for your reply

I change it but now my page does nothing.  I enter the user name and password click login, the page reloads the login.php

I will repost this with a new Subject line.

ThX

David
  "Adam Voigt" <adam@cryptocomm.com> wrote in message 1040055257.1011.1.camel@beowulf.cryptocomm.com">news:1040055257.1011.1.camel@beowulf.cryptocomm.com...
  Your missing a semicolon (;) after your first "$myquery =" line. 
    ____________________________________________ 
    ----- Original Message ----- 
    From: "David" <cddllc@hotmail.com> 
    To: <php-db@lists.php.net> 
    Sent: Monday, December 16, 2002 2:16 AM 
    Subject:  Get error message, 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 Database Mailing List (http://www.php.net/) 
    > To unsubscribe, visit: http://www.php.net/unsub.php 
    > 
    > 


    -- 
    PHP Database Mailing List (http://www.php.net/) 
    To unsubscribe, visit: http://www.php.net/unsub.php 

-- 
Adam Voigt (adam@cryptocomm.com)
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc
       


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux