Hi, Right now the table displays the php variables and not the actual values...
I think the data has been inserted to database with php variables and that is why it shows the variable names there...
I have just used a part of variables as example to show how it should be inserted:
Code:
$Surname=$_POST['Surname'];
$Name=$_POST['Name'];
$query_string = "INSERT INTO the_table_name (field_surname, field_name) VALUES ('$Surname', '$Name') ";
$query = mysql_query($query_string);
if(!$query){
die(mysql_error());
}
else
{
echo "Entries successfully updated";
}
Make sure that you change the table_name into the actual table name in your database and field_surname, field_name to the respective field names in the table...
Also, the table in the page is too long... Make sure that you actually split it into several rows instead of 1 row
Bookmarks