lavarock09
-
Posts
5 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by lavarock09
-
-
Because he asked for a password systemAnd why aren't you asking for a user name and checking for the combination of user name and password? -
this is a simple login scriptlogin.htm
<form action="login.php" method="post">Password: <input type="text" name="password"></form>
login.php
<?php$conn = mysql_connect(localhost,db userame,db password);mysql_select_db(db name) or die("Unable to select database");$password = $_POST['password'];$password2 = md5($password);/*To Be really safe you could do this */$password3 = md5($password2);/* Assuming that you have the encrypted password in the db do this */$getdbpassword = mysql_query("SELECT * FROM password");while ($row = @mysql_fetch_assoc($getdbpassword)){$pass = $row['password'];}if($pass == $password3){echo 'Successfully Logged In';}else{echo 'Login Failure. Please try again.';}/* If you don't have the encrypted password in your database, run this and put what gets outputted into a table called password in a field called password in your DB */echo $password3;
Hope this makes sense
-
I'm not certain, but you might be able to use txt files...Correct me if I'm wrong...
-
Well...It would be good if you had a mySQL database...Then you just enter the data into the database and display it somewhere else...If you need that code, I'll give it you...
Mysql INSERT INTO
in SQL
Posted
I changed VALUE to VALUESThat should work