Good day! I'm trying to save some data into my database and it won't work but it does not display any kind of error. please tell me what i'm doing wrong. I'm trying to find the error but I think another pair of eyes and brain could really help me. thanks! :)
this is my code
<?php
$user_name = "root";
$password = "";
$database = "db_tocode";
$server = "127.0.0.1";
$content = "content_temp1";
$uname = $_GET['username'];
$db_handle = mysql_connect($server, $user_name, $password);
$db_found = mysql_select_db($database, $db_handle);
$header = $_POST['header'];
$title1 = $_POST['title1'];
$content1 = $_POST['content1'];
$title2 = $_POST['title2'];
$content2 = $_POST['content2'];
$title3 = $_POST['title3'];
$content3 = $_POST['content3'];
$title4 = $_POST['title4'];
$content4 = $_POST['content4'];
$title5 = $_POST['title5'];
$content5 = $_POST['content5'];
$title6 = $_POST['title6'];
$content6 = $_POST['content6'];
$title7 = $_POST['title7'];
$content7 = $_POST['content7'];
$title8 = $_POST['title8'];
$content8 = $_POST['content8'];
$title9 = $_POST['title9'];
$content9 = $_POST['content9'];
$title10 = $_POST['title10'];
$content10 = $_POST['content10'];
$content11 = $_POST['content11'];
if ($db_found) {
$SQL="INSERT INTO $content (user_uname, header, title1, content1, title2, content2, title3,content3,title4, content4, title5, content5, title6, content6, title7, content7, title8, content8, title9, content9, title10, content10, content11) VALUES('$uname', ' $header', '$title1', '$content1', '$title2', '$content2', '$title3', '$content3', '$title4', '$content4', '$title5', '$content5', '$title6', '$content6', '$title7', '$content7', '$title8', '$content8', '$title9', '$content9', '$title10', '$content10', '$content11')";
header('Location:1stTemplate/index.php');
}
else {
print "Database NOT Found ";
mysql_close($db_handle);
}
?>