Im having problem when i go to insert data from a table into MySql table.
Here is my php code:
Im getting the 'error update database' message when i run that code and the data doesnt insert into mt table.
Any suggestions please??
Here is my php code:
Code:
<?php
$Date = $_POST['Date'];
$StartTime = $_POST['StartTime'];
$TestTime = $_POST['TestTime'];
$t1 = $_POST['t1'];
$t2 = $_POST['t2'];
$t3 = $_POST['t3'];
$t4 = $_POST['t4'];
$t5 = $_POST['t5'];
$t6 = $_POST['t6'];
$t7 = $_POST['t7'];
$t8 = $_POST['t8'];
$Initials = $_POST['Initials'];
$PassFail = $_POST['PassFail'];
mysql_connect("localhost","***","******");
mysql_select_db("*******");
$query="INSERT INTO testing (Date, StartTime, TestTime, t1, t2, t3, t4, t5, t6, t7, t8, Initials,PassFail)
VALUES
('NULL','".$Date."','".$StartTime."','".$TestTime."','".$t1."','".$t2."','".$t3."','".$t4."','".$t5."','".$t6."','".$t7."','".$t8."','".$Initials."','".$PassFail."')";
$result=mysql_query($query)or die('Error updating database');
?>
Im getting the 'error update database' message when i run that code and the data doesnt insert into mt table.
Any suggestions please??