Grant Fullen
asked on
Trying to make a login
I have this so far.
<?php
$user =$_POST['Username'];
$pass =$_POST['Password'];
@ $db = mysql_pconnect("localhost" , "user", "pass");
if (!$db)
{
echo "Error: Could not connect to database.";
exit;
}
mysql_select_db("db name");
?>
It connects fine. What I need to know is how to take their username and password and check the db if they have given the right username and pass.
<?php
$user =$_POST['Username'];
$pass =$_POST['Password'];
@ $db = mysql_pconnect("localhost"
if (!$db)
{
echo "Error: Could not connect to database.";
exit;
}
mysql_select_db("db name");
?>
It connects fine. What I need to know is how to take their username and password and check the db if they have given the right username and pass.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.