php - DELETE FROM is not working (mysql) -
what code makes is, if state of project finalised, deletes project table , inserts table picking reference. thing inserts register other table not delete register previous table. maybe here problem, reference this: st9999_15 or st8888_15. maybe underscore problem.
if ($state="finalised") { $result=mysqli_query($con,"select * `proyectos_en_curso` `referencia`='$reference'"); $row = mysqli_fetch_array($result); $name=$row['name']; $ling_comb=$row['combinacion_linguistica']; $date=$row['fecha_entrega_cliente']; mysqli_query($con,"delete `proyectos_en_curso` `referencia`='st9999_15'"); mysqli_query($con,"insert `proyectos_entregados` (`name`, `referencia`, `combinacion_linguistica`, `fecha_entrega_cliente`) values ('$name', '$reference', '$ling_comb', '$date')"); } mysqli_close($con);
thank help.
delete `proyectos_en_curso` `referencia`='st9999_15';
check code in mysql database. shows error , can clear it.
Comments
Post a Comment