<?
/*
mysql_fetch_object() waarden in een object zetten.
*/
include "connecti.php";
echo "<h1>Mysql Fetch Object</h1>";
$sql = "SELECT * FROM test ORDER BY id";
if ($result=mysqli_query($mysqli,$sql))
{
while ($obj=mysqli_fetch_object($result))
{
print("$obj->id, $obj->voornaam, $obj->achternaam, $obj->leeftijd</br>");
}
}
show_source(__FILE__);
?>
<a href="mysqli.php">Mysqli SELECT</a>
<a href="mysqliinsert.php">Mysqli Insert</a>
Mysqli SELECT
Mysqli Insert