Hi,
After i searching using uncle Google and none of them meet my criteria so i decide to posting here. I have web site. And got a list of file. Basically got 2 different user to download a file, admin and regular user.
I want to store username and password that encrypted in mysql. Each time user visit the page they need to fill user name and password base on what in database. So, does anyone knows how to write coding.
My background is in networking. So i'm familiar with php coding. If using simple coding, i just search in the net and paste it. To me this is complicated coding. Please assist me. This is not assignment or task given any lecturer. This from my senior supervisor.
Thanks.
PHP Code Website Login
Moderator: General Moderators
Re: PHP Code Website Login
Code: Select all
$result = mysql_query("SELECT * FROM `users` WHERE `username`='".$user."' AND `password`='".md5($pass)."';");
look up mysql_fetch_array(), mysql_query(), and md5() on that amazing resource, google