I have a php array with 100 elements in it. How can I insert the entire array at once in mysql. Currently, I am inserting 1 element at a time using a loop, as below.
for($x=1;$x<=100;$x++){
mysqli_query($Conn,"INSERT INTO mytable (slno) VALUES ('$myarray[x]')");
}