The_real_Guru
Erfahrenes Mitglied
PHP:
function getUserByEmail ($mail=$this->email) {
global $db;
$res=$db->query("SELECT * FROM ".TB_USERS." WHERE email='".$mail."' LIMIT 0,1");
if ($res=$db->fetch_array($res)) {
$this->userid=$res[userid];
$this->name=$res[name];
$this->nickname=$res[nickname];
$this->email=$res[email];
$this->password=$res[password];
$this->description=$res[description];
$this->sectionid=$res[sectionid];
}
}