I am well-versed in the old php mysql extension.
I am working on my first script that uses the mysqli extension.
I am going to be inserting a large number of
$stmt = $mysqli->stmt_init(); if($stmt->prepare("INSERT INTO `activity` (`id`, `name`, `type`) VALUES (?, ?, ?)")) { $stmt->bind_param('iss', $_id, $_name, $_type); for($i=0;$i<$limit;$i++) { $_id = $id[$i]; $_name = $name[$i]; $_type = $type[$i]; $stmt->execute(); } }
should do it for you!