$dbh=mysql_connect (“localhost”, “crowncap_Jorik”, “aapjes”) or die (‘I cannot connect to the database because: ‘ . mysql_error());
mysql_select_db (“crowncap_database”);
$sql = “SELECT * FROM plaatjes ORDER BY merk”;
if (!mysql_query($sql)) {echo (mysql_error());}
else
{
$resultaat = mysql_query($sql);
if (mysql_num_rows($resultaat) >0)
{
echo “
Adres | Merk | Merk/Plaats | Jaar |
---|---|---|---|
$rij->adres; | $rij->merk; | $rij->alt; |
“;
}
}