How to Insert values on Multiple Table on my data base – Mysql
I need to insert values into multiple table. Please correct my code because it just double the inserted value on table_attendace if(isset($_POST['text'])) { $text =$_POST['text']; // insert query $sql = "INSERT INTO table_attendance(NAME,TIMEIN) VALUES('$text',NOW())"; $query =mysqli_query($conn,$sql) or die(mysqli_error($conn)); if($query==1) {…