Link to home
Start Free TrialLog in
Avatar of Grant Fullen
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.
ASKER CERTIFIED SOLUTION
Avatar of AlexanderR
AlexanderR
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial