<?php
$username="sifaka@localhost";
$password="*********";
$database="sifaka_newdatabase";
$host="localhost";
$first=$_POST['first'];
$last=$_POST['last'];
$phone=$_POST['phone'];
$mobile=$_POST['mobile'];
$fax=$_POST['fax'];
$email=$_POST['email'];
$web=$_POST['web'];
$message="process successful";
$connection = mysql_connect($host,$username,$password);
mysql_select_db($database,$connection) or die( "Unable to select database");
$query = "INSERT INTO contacts VALUES ('','$first','$last','$phone','$mobile','$fax','$email','$web')";
mysql_query($query);
mysql_close();
?>
How do I fix this?
Thank you in advance!
sifaka
$username="sifaka@localhost";
$password="*********";
$database="sifaka_newdatabase";
$host="localhost";
$first=$_POST['first'];
$last=$_POST['last'];
$phone=$_POST['phone'];
$mobile=$_POST['mobile'];
$fax=$_POST['fax'];
$email=$_POST['email'];
$web=$_POST['web'];
$message="process successful";
$connection = mysql_connect($host,$username,$password);
mysql_select_db($database,$connection) or die( "Unable to select database");
$query = "INSERT INTO contacts VALUES ('','$first','$last','$phone','$mobile','$fax','$email','$web')";
mysql_query($query);
mysql_close();
?>
How do I fix this?
Thank you in advance!
sifaka