View Single Post
  #48  
Old 3rd January 2006, 21:39
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,647
Thanks: 794
Thanked 5,000 Times in 3,911 Posts
Default

You can try to do a select on the mysql user / database table like this:

$sql = "SELECT `User` FROM `mysql`.`user` WHERE `User` = '$myuser' AND `Password` = password('$mypassword')";

If the query returns the username, username and password are valid.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote