$insert_data = mysqli_query($conn, $sql_insert); if (mysqli_num_rows($result_hearder) === 0){ while($row=mysqli_fetch_array($result_hearder,MYSQLI_ASSOC))