No sé, porque ocurre esto, ya que en el código php, yo los inserto en su columna correspondiente. Si alguien me podría explicar, porque sucede esto, y como arreglarlo para que todos los valores estén en un sola fila organizados se lo agradecería mucho
Nota: No sé si necesiten mi código php
PHP
<?php
if(isset($_POST['insert']))
{
$conn= mysqli_connect("localhost", "root","","datos3");
$query= "INSERT INTO other_fields(books) VALUES('".$_POST["insert"]."') ";
$result = mysqli_query($conn, $query);
echo "Data Inserted Succesfully";
}
if(isset($_POST['insert1']))
{
$conn1= mysqli_connect("localhost", "root","","datos3");
$query1= "INSERT INTO other_fields(concrets) VALUES('".$_POST["insert1"]."') ";
$result1 = mysqli_query($conn1, $query1);
echo "Data Inserted Succesfully";
}
if(isset($_POST['insert2']))
{
$conn2= mysqli_connect("localhost", "root","","datos3");
$query2= "INSERT INTO other_fields(trainings) VALUES('".$_POST["insert2"]."') ";
$result2 = mysqli_query($conn2, $query2);
echo "Data Inserted Succesfully";
}
if(isset($_POST['insert3']))
{
$conn3= mysqli_connect("localhost", "root","","datos3");
$query3= "INSERT INTO other_fields(curriculum) VALUES('".$_POST["insert3"]."') ";
$result3 = mysqli_query($conn3, $query3);
echo "Data Inserted Succesfully";
}
if(isset($_POST['insert4']))
{
$conn4= mysqli_connect("localhost", "root","","datos3");
$query4= "INSERT INTO other_fields(class_observations) VALUES('".$_POST["insert4"]."') ";
$result4 = mysqli_query($conn4, $query4);
echo "Data Inserted Succesfully";
}
if(isset($_POST['insert5']))
{
$conn5= mysqli_connect("localhost", "root","","datos3");
$query5= "INSERT INTO other_fields(interventions) VALUES('".$_POST["insert5"]."') ";
$result5 = mysqli_query($conn5, $query5);
echo "Data Inserted Succesfully";
}
if(isset($_POST['insert6']))
{
$conn6= mysqli_connect("localhost", "root","","datos3");
$query6= "INSERT INTO other_fields(testing) VALUES('".$_POST["insert6"]."') ";
$result6 = mysqli_query($conn6, $query6);
echo "Data Inserted Succesfully";
}
?>