Am knew to sql so I need help with making it where when the user logs it checks the database to see if the information they entered is right if not echo: We do not have that information in our database. But if its right it sends them to another page, here is my code:
<?php
$username="****";
$password="****";
$database="****";
$username=$_POST['user'];
$password=$_POST['pass'];
$email=$_POST['email'];
$con = mysql_connect("*****","****","****");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("****", $con);
$result = mysql_query("SELECT * FROM userslogin");
while($row = mysql_fetch_array($result))
mysql_close($con);
?>
Addiction information:
1. Yes I do have a database that works when a person registers.
Thanks in advance,just figured out how to get my database to connect umm...like 10 minutes ago 😃