"; if ($_GET['sl']=='c') { if ($_GET['ucode']=='') { die("
$ERR_02
"); } else { ###########################ucode check############################################## $query = "SELECT ucode FROM mp_advertentie where ucode='".$_GET['ucode']."'"; $result = mysql_query($query); $rows = mysql_fetch_array($result); if ($rows[0]==$ucode) { $query="where ucode='".$_GET['ucode']."'"; } else { die("
$MSG_NOAD
"); } } } else { echo""; $query="where id=".$_GET['id']." "; } $sql = "SELECT * FROM mp_advertentie $query "; $result = mysql_query($sql); while ($resultat = @mysql_fetch_array($result)) include "templates/advertentie.htm"; include "includes/views.php"; include "templates/bodbottom.htm"; include"footer.php"; ?>