Hello
I will make a script that generate a html table with data of a MySQL database.
Like: 5 coloms and then a new row.
That's wat I allready have:
There 's a parse error at the else
<?php
include("config.inc.php");
include("functies.inc.php");
jumpbox_cat();
if($categorie){
$query = "SELECT * FROM tabel WHERE cat_id='$categorie'";
$resultaat = mysql_query($query) or die(mysql_error());
$tr = "1";
echo"<table border='1' width='100%'><tr><td>";
while ($record = mysql_fetch_object($resultaat)){
echo "<img alt='$record->naam' src='$record->url_th'>";
$tr++;
if ($tr = "5") {
echo "</tr><tr>";
$tr = "1";}
}}
echo("</table>");
else {
echo "<br><strong>Er werd geen categorie geselecteerd.</strong>";
}
?>