Nieuw lid |
|
$hitlist1 = mysql_query("SELECT * FROM `[auto]` WHERE `tekoop`='1' AND `soort`='{$_GET['soort']}' ORDER BY `schade` ASC");
print "<a href=\"autos.php\">Ga terug naar de autolijst</a><br><Br><form method=\"post\">";
print "<tr><td class=\"header\" align=\"center\">ID</td><td class=\"header\" align=\"center\">Verkoper</td> <td class=\"header\" align=\"header\">Prijs</td> <td class=\"header\" align=\"header\">Land</td> <td class=\"header\" align=\"center\" >Soort</td> <td class=\"header\" align=\"center\" width=20>Schade</td></tr>";
while($hitlist = mysql_fetch_object($hitlist1)){
$soortauto = Array("","Merkloze","Viriginia","Panthom V Limousine","Mercedes Heritage","Duesenberg SJ Roadster","Lotus Super 7 1500","Cadillac Fleetwood","BMW 326","Crossley Super Silver","Duesenberg Cooper","Cadillac Eldorado Starfire","Ford Phaeton","Packard Dietrich","Pontiac Firebird","Fargo Caravan","Chevrolet Pro Street 210","Chevrolet Corvette","Jaguar XJ6","Plymouth VIP","Buick Sedanette","Citroen C3","Volkswagen Beetle","Alfra Romeo 116","BMW X3","Opel DMT","Mercedes AMG Safety Car","Hummer","Mercury Comet ","Ford Shelby GT500","Ferrari Enzo","Saleen S7","Bentley Arnage");
$soort = $soortauto[$hitlist->soort];
$land1 = Array('','Nederland','Italië','Frankrijk','Verenigde Staten','Groot-Brittannie','');
$land = $land1[$hitlist->land];
$bedrag = number_format($hitlist->prijs,0);
print " <tr><td class=\"footer\">{$hitlist->id}</td><td class=\"footer\"><a href=profile.php?name={$hitlist->owner}>{$hitlist->owner}</a></td> <td class=\"footer\"><b>\${$bedrag},-</b></td><td class=\"footer\"><b>{$land}</b></td> <td class=\"footer\" >{$soort}</td><td class=\"footer\" width=\"20%\">{$hitlist->schade}%</td></tr>";
}
$hitlist1 = mysql_query("SELECT * FROM `[auto]` WHERE `tekoop`='1' AND `soort`='{$_GET['soort']}' ORDER BY `schade` ASC"); print "<a href=\"autos.php\">Ga terug naar de autolijst</a><br><Br><form method=\"post\">"; print "<tr><td class=\"header\" align=\"center\">ID</td><td class=\"header\" align=\"center\">Verkoper</td> <td class=\"header\" align=\"header\">Prijs</td> <td class=\"header\" align=\"header\">Land</td> <td class=\"header\" align=\"center\" >Soort</td> <td class=\"header\" align=\"center\" width=20>Schade</td></tr>"; $soortauto = Array("","Merkloze","Viriginia","Panthom V Limousine","Mercedes Heritage","Duesenberg SJ Roadster","Lotus Super 7 1500","Cadillac Fleetwood","BMW 326","Crossley Super Silver","Duesenberg Cooper","Cadillac Eldorado Starfire","Ford Phaeton","Packard Dietrich","Pontiac Firebird","Fargo Caravan","Chevrolet Pro Street 210","Chevrolet Corvette","Jaguar XJ6","Plymouth VIP","Buick Sedanette","Citroen C3","Volkswagen Beetle","Alfra Romeo 116","BMW X3","Opel DMT","Mercedes AMG Safety Car","Hummer","Mercury Comet ","Ford Shelby GT500","Ferrari Enzo","Saleen S7","Bentley Arnage"); $soort = $soortauto[$hitlist->soort]; $land1 = Array('','Nederland','Italië','Frankrijk','Verenigde Staten','Groot-Brittannie',''); $land = $land1[$hitlist->land]; print " <tr><td class=\"footer\">{$hitlist->id}</td><td class=\"footer\"><a href=profile.php?name={$hitlist->owner}>{$hitlist->owner}</a></td> <td class=\"footer\"><b>\${$bedrag},-</b></td><td class=\"footer\"><b>{$land}</b></td> <td class=\"footer\" >{$soort}</td><td class=\"footer\" width=\"20%\">{$hitlist->schade}%</td></tr>"; }
Hoe maak ik hierin dat er een error komt met "er zijn geen auto's te koop"
omdat het slecht te lezen is:
http://www.plaatscode.be/4560/
|