I have 18 columns in the database and when I insert 15 it works fine but when I try to add 3 more it doesn't insert anymore. It stops working. When separate the code to make it insert those 3 in a different code into the same table it only inserts those 3 but leaves the others blank. Does phpmyadmin have a limit to the outside input being put into the database? And why is that??? I should be able to input all data from html to php into the database with no problem since I can put that amount of columns in the table.
Here is my php code
if(isset($_POST['submit'])) {
$host = "";
$username = "";
$password = "";
$dbname ="";
$conn = mysqli_connect($host, $username, $password, $dbname);
$nck = $_POST['nck'];
$CTB = $_POST['ctbn'];
$CBB = $_POST['ctrbn'];
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
$sql = "INSERT INTO personal_information (first, last,nickname,dob,id,gender,mar_sts,address,country,province,zip_code,city_born,country_born,citzen_sts,position,q,phone,email) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
$stmt = mysqli_stmt_init($conn);
mysqli_stmt_prepare($stmt, $sql);
mysqli_stmt_bind_param($stmt, "ssssssssssssssssss", $FN,$LN,$nck,$dte,$ID,$OP,$MS,$AD,$CT,$PF,$ZC,$CTB,$CBB,$CK,$PA,$q,$P,$EL);
mysqli_stmt_execute($stmt);
mysqli_close($conn);
}
When I put this code into the database it goes blank, but when I remove 3 items for example if I removed q phone and email off it would work. only 15 of these work. The rest 3 refuse to work.