<?php
if ($submit) {
$link = mysql_connect("localhost", "", "") or
die("Could Not Connect To Database");
$db = mysql_select_db("db",$link) or die(mysql_error());
$sql = "INSERT INTO employees (cname,password,address,city,state,zip,phone,service,nbd,amd) VALUES
('$cname','$password','$address','$city','$state','$zip','$phone','$nbd','$amd')";
$result = mysql_query($sql);
echo "<center>Infomation successufly added to database";
}
?>
Well when i click submit on the form it says "informaton succesfully added to database" but of course, no it isin't any ideas??
Thanks
Anthony