run multiple sql commands at once
snippet in sql

run multiple sql commands at once

user6974

$query  = "SQL Code";
$query .= "SQL Code";
//execute query
if($result = mysqli_multi_query($conn, $query))
{
	echo "DONE!";
}else{
	echo "Something went wrong :(";
}