PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php /* create sql connection*/ $query = "SELECT VERSION() as version;"; /* first query : Notice the 2 semicolons at the end ! */ $query = "SELECT VERSION() as version;"; /* Notice the dot before = and the 2 semicolons at the end ! */ /* Execute queries */ if (mysqli_multi_query($mysqli, $query)) { do { /* store first result set */ if ($result = mysqli_store_result($mysqli)) { while ($row = mysqli_fetch_array($result)) /* print your results */ { echo $row['column1']; echo $row['column2']; } mysqli_free_result($result); } } while (mysqli_next_result($mysqli)); } ?>
Show:  
Copy Clear