well, here is a start, try the code below.. you have to change column1,column2,column3,column4 to the mysql columns you are inserting $fname,$lname,$address,$city into..
<?php
if (!$fname || !$lname || !$address || !$city)
{
echo "You have not entered all the required information. <br /> Please go back and try again.";
exit;
}
$db_addr = "localhost";
$db_user = "username";
$db_pass = "password";
$db_name = "mride";
$db_table = "customers";
mysql_connect($db_addr,$db_user,$db_pass) or die ('cannot connect to database');
mysql_select_db($db_name) or die ('cannot select database');
$results = mysql_query("INSERT INTO $db_table (column1,column2,column3,column4) VALUES ('$fname','$lname','$address','$city')");
if($results)
{
echo "Information Entered";
}
else
{
echo "There was a problem.";
}
?>