I need to insert multiple records with an insert
Example:
$ ids="1,2,3,4"
$conn->prepare("INSERT INTO documento (id) VALUES (1)");
$conn->prepare("INSERT INTO documento (id) VALUES (2)");
$conn->prepare("INSERT INTO documento (id) VALUES (3)");
$conn->prepare("INSERT INTO documento (id) VALUES (4)");
Is there a loop that for example checks how many records I have in my $ ids variable and insert it several times by repeating until I insert the last record of the variable $ ids