Aun no sé porque esta sucediendo esto, si estoy guardando todos los datos en una sola linea de código. Lo que quiero es que lo que esta en EL id->2 se almacene en la fila del id->1, en pocas palabras, que todos los datos estén en una sola fila
Mi código PHP
<?php $ conexion = new mysqli("localhost", "root", "", "datos3"); if(!$ conexion){ echo "Conexión no exitosa"; } else { $ base= mysqli_select_db($ conexion, "datos3"); if(!$ base){ echo "No se pudo conectar a la base de datos"; } } //LLAMAMOS LAS VARIBALES $ Teachers_Name = isset($ _POST['Teachers_Name']) ? $ _POST['Teachers_Name'] : ''; $ School_Name = isset($ _POST['School_Name']) ? $ _POST['School_Name'] : ''; $ Implementation_Quality = isset($ _POST['Implementation_Quality']) ? $ _POST['Implementation_Quality'] : ''; $ Number_of_Teachers = isset($ _POST['Number_of_Teachers']) ? $ _POST['Number_of_Teachers'] : ''; $ Number_of_Trained_Teachers = isset($ _POST['Number_of_Trained_Teachers']) ? $ _POST['Number_of_Trained_Teachers'] : ''; $ BOOKS = isset($ _POST['insert']) ? $ _POST['insert'] : ''; $ CONCRETS = isset($ _POST['insert1']) ? $ _POST['insert1'] : ''; $ TRAININGS = isset($ _POST['insert2']) ? $ _POST['insert2'] : ''; $ CURRICULUM = isset($ _POST['insert3']) ? $ _POST['insert3'] : ''; $ CLASS_OBSERVATIONS = isset($ _POST['insert4']) ? $ _POST['insert4'] : ''; $ INTERVENTIONS = isset($ _POST['insert5']) ? $ _POST['insert5'] : ''; $ TESTING = isset($ _POST['insert6']) ? $ _POST['insert6'] : ''; //Guarda las variables $ sql="INSERT INTO datos_3(Teachers_Name, School_Name, Implementation_Quality, Number_of_Teachers, Number_of_Trained_Teachers, BOOKS, CONCRETS, TRAININGS, CURRICULUM, CLASS_OBSERVATIONS, INTERVENTIONS, TESTING) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)"; $ sth = mysqli_prepare($ conexion,$ sql); mysqli_stmt_bind_param($ sth,'ssssssssssss', $ Teachers_Name, $ School_Name, $ Implementation_Quality, $ Number_of_Teachers, $ Number_of_Trained_Teachers, $ BOOKS, $ CONCRETS, $ TRAININGS, $ CURRICULUM, $ CLASS_OBSERVATIONS, $ INTERVENTIONS, $ TESTING); $ ejecutar = mysqli_stmt_execute($ sth); if(!$ ejecutar){ echo "Hubo algun error"; } else { echo "Datos guardados correctamente<br><a href='index.php'>Volver</a>"; } ?>