Re: MD5 & Auth class
| From: | Chris Ilias | Date: | Wed, 01 Sep 2004 07:24:25 +0000 |
| Subject: | Re: MD5 & Auth class | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14363@lists.php.net to get a copy of this message | ||
Pahlevanzadeh Mohsen wrote:
Dear,
I have checked my DB,Inserted my data,password as MD5.
I think that i have problem with following line:
$parameterforauth=array("dsn"=>"mysql://jiq:mohsen@localhost/mem",
"table"=>"usernames",
"usernamecol"=>"user",
"passwordcol"=>"pass");
Please guide me.....
1) read the docu for the dsn at, thus that u understand what a valid dsn is!!
http://pear.php.net/manual/en/package.database.db.intro-dsn.php
you need the mysql user !!
$mysqluser = "mysql_user";
$mysqluser = "mysql_pass";
$mysqlhost = "localhost";
$db_name = "yourdatabase";
$params_auth = array(
'dsn' =>"mysql://$mysqluser:$mysqlpass@$mysqlhost/$db_name",
'table' => "usersname",
'usernamecol' => "user",
'passwordcol' => "pass",
'cryptType'=>"md5",
'db_fields'=>'*'
);
--
---//---//---//---//---//---//---//---//---//---//
Christoph Ilias email: mist@uep.at
-------------------------------------------------
"Die meisten Probleme sitzen vor dem Bildschirm"