Re: MD5 & Auth class

From: Date: Tue, 31 Aug 2004 23:03:09 +0000
Subject: Re: MD5 & Auth class
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14355@lists.php.net to get a copy of this message
Pahlevanzadeh Mohsen wrote:
set_include_path(get_include_path().'/'.'auth'); include_once('Auth/Auth.php'); function x(){echo "xxxxxxxxxxxxxxxxxxx";} mysql_pconnect('localhost',"root",''); mysql_select_db('mem'); $x=MD5('mohsen'); mysql_query("insert into usernames values (pass='$x',user = 'jiq');");
are the date correctly inserted into the database?? i think there is a problem with a false sql-statement the sql table should have a id field which should be the primary key <code> $user = "jig"; $pass = "mohsen"; $sql = "INSERT INTO usernames(user,pass) VALUES ('$user',MD5('$pass'))"; mysql_query($sql); </code> i use the md5 function of sql in this example greetz chris -- ---//---//---//---//---//---//---//---//---//---// Christoph Ilias email: mist@uep.at ------------------------------------------------- "Die meisten Probleme sitzen vor dem Bildschirm"

« previous php.pear.general (#14355) next »