it cant authenticates!!!!!!!!!!!!!!!!!!!!!!!!MySQL
| From: | Pahlevanzadeh Mohsen | Date: | Tue, 31 Aug 2004 00:14:40 +0000 |
| Subject: | it cant authenticates!!!!!!!!!!!!!!!!!!!!!!!!MySQL | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-14341@lists.php.net to get a copy of this message | ||
Dear My code is :<?
set_include_path(get_include_path().'/'.'auth');
include_once('Auth/Auth.php');
function x(){echo "xxxxxxxxxxxxxxxxxxx";}
$parameterforauth=array("dsn"=>"mysql://mohsen:loverx@localhost/mem",
"table"=>"usernames",
"usernamecol"=>"user",
"passwordcol"=>"pass");
$ptr_auth_C=new auth("DB",$parameterforauth,"x");
$ptr_auth_C->start();
if ($ptr_auth_C->getAuth())
echo "okkkkkkkkkkkkkkk";
?>
I have a bank what named mem & i have table for mem
that it named usernames.Also it has user & pass
fields.
I inserted mohsen as user & loverx as passwd.
my source code must print okkkkkkkkkkkkk on the
browser.
But i don't see it.
It just print xxxxxxxxxxxxxxxx.
My MySQL is up.
Please guide me.....
Yours,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