<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
$name = $_POST['name'];
$sname = $_POST['sname'];
$address = $_POST['address'];
$number = $_POST['number'];
mysql_connect("localhost", "", "") or die ('error: ' .mysql_error());
mysql_select_db ("bza410_test");
$query="INSERT INTO testTable (firstname, surname, address, phone)VALUES ('".$name."', '".$sname."', '".$address."', '".$number."')";
mysql_query($query) or die ('error updating database');
echo "database updated with: " .$name. " ".$sname." ".$address." ".$number ;
?>
Still does not work and I have removed ID and NULL....