My problem

From: Date: Wed, 01 Sep 2004 23:58:36 +0000
Subject: My problem
Groups: php.general php.pear.general 
Request: Send a blank email to php-general+get-195489@lists.php.net to get a copy of this message
Dears, My mysqld is up. I inserted mohsen as username,& md5 of mohsen as password. I have mem as bank.usernames as my table.& i have user & pass as my fields. i inserted mohsen as user & md5 of it as pass. It are meaning : mohsen : 80393af8b3d99736c8b0d49d9a9da4ffxxx But my code isn't work: <? include_once('Auth/Auth.php'); function Login() { echo "xxx"; echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']. "\"\">"; echo "<input type=\"text\" name=\"u\"> <br />"; echo "<input type=\"password\" name=\"p\"> <br />"; echo "<input type=\"submit\">"; echo "</form>"; } $username=$_POST['u']; $password=$_POST['p']; $parameterforauth=array("dsn"=>"mysql://$username:$password@localhost/mem", "table"=>"usernames", "usernamecol"=>"user", "passwordcol"=>"pass"); $ptr_auth_C=new Auth("DB",$parameterforauth,'Login'); $ptr_auth_C->start(); if ($ptr_auth_C->getAuth()) echo "Successfuly loggined!!!!!!!"; ?> I can't see "Successfuly loggined!!!!!!!" Please guide me.............................. --Mohsen ===== ---------DIGITAL SIGNATURE------------------- ///Mohsen Pahlevanzadeh//////// Network administrator & programmer My home phone is: +98213810146 My email address is m_pahlevanzadeh at yahoo dot com My website is: http://webnegar.net ---------------------------------------------------------------- __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail

« previous php.general (#195489) next »