Crew algemeen |
|
en wat doet deze code:
<?php
function showdb() {
if(!$db = sqlite_open("php5", 0666, $sqliteerrormsg)) die ("SQLITE error: " . $sqliteerrormsg);//dit lijntje is dus wat aangepast ;-)
$sql = ("SELECT * FROM werknemers;");
$result = sqlite_query($db, $sql);
while ($rij = sqlite_fetch_array($result)) {
echo ($rij['id'] . " | " .
$rij['voornaam'] . " " .
$rij['achternaam'] . " | " .
$rij['kamer'] . " | " .
$rij['toestel'] . " | " .
"<br>\n");
}
}
?>
<?php function showdb() { if(!$db = sqlite_open ("php5", 0666, $sqliteerrormsg)) die ("SQLITE error: " . $sqliteerrormsg);//dit lijntje is dus wat aangepast ;-) $sql = ("SELECT * FROM werknemers;"); $result = sqlite_query($db, $sql); while ($rij = sqlite_fetch_array($result)) { echo ($rij['id'] . " | " . $rij['voornaam'] . " " . $rij['achternaam'] . " | " . $rij['kamer'] . " | " . $rij['toestel'] . " | " . "<br>\n"); } } ?>
|