12-29-2007, 02:16 PM
|
#1 (permalink)
|
|
Super Moderator
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
|
[FeedBack] Could use your help :)
Class_user.php
Hello, i have much to learn.
Could anyone please take the time and corect me.
with /*comment tags */ so i know what i did rong..
Thank you ;)
PHP Code:
<?php
class users {
public $date public $login public $register public $userpage /* Not done yet */ public $admin /* Not done yet */
public function logg(){ print "This user was last logged in" . $this->date; SELECT * (`date` = '".($date)."')) from `user` print '$date'; }
}
public function userlogin(){
{ SELECT `id` from user WHERE((md5(`username`)."')&&(`password` = '".md5($password)."'))
if("$username && $password == ); print "you have accses to login"; }else{ print "You may not login";
}
}
public function reg(){ {
$sql = "INSERT INTO `".SUFFIX."user` SET `username` = '".$username."', `password` = '".md5($password)."', `email` = '".$email."', `usrlvl` = '0', `registered` = NOW()";
}
?>
Last edited by codefreek : 12-29-2007 at 03:32 PM.
Reason: take off the function in the function.. (sorry xD) (EDIT ONE MORE TIME xD)
|
|
|
|