PHP gevorderde |
|
<?php
include('connections.php');
include('functions.php');
$ID = ( isset($_GET['id']));
$query = "SELECT jaar,beschrijving,pic_klein FROM fotos WHERE id='$ID'";
$result = mysql_query($query) or die("<b>Databaseprobleem!</b>");
$row = mysql_fetch_array($result);
print("<img src=\"images/foto/big_" . $row[2] . "\" alt=\"" . $row[1] . "\" /><br />n");
print($row[1] . "<br />n" . "Deze foto is uit het jaar: " . $row[0]);
?>
<?php include('connections.php'); include('functions.php'); $ID = ( isset($_GET['id'])); $query = "SELECT jaar,beschrijving,pic_klein FROM fotos WHERE id='$ID'"; print("<img src=\"images/foto/big_" . $row[2] . "\" alt=\"" . $row[1] . "\" /><br />n"); print($row[1] . "<br />n" . "Deze foto is uit het jaar: " . $row[0]); ?>
|