x104/L1.php

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <php include ('db.php') $query = "select titel, pub_jaar from boeken"; $result = mysqli_query ($db, $query) or die(msqli_error($db)); $row = mysqli_fetch_array($result); $titels = $result; $pub_jaren = $result; return $result; ?> <table width="200" border="1"> <tr> <td><php $titel ?> &nbsp;</td> <td><php $titels ?> &nbsp;</td> <tr> <tr> <td><php $pub_jaar ?> &nbsp;</td> <td><php $pub_jaren ?> &nbsp;</td> <tr> </table> </body> </html>

Resultaat

Made by Thijs Aarnoudse