Hi
i hope someone can help me out with this
if have got this code (see under)
What i want is that when $Website->Mail = empty it displays the following onmousover
onmouseover=\" this.T_WIDTH=200; return escape('<br><br>$Website->Omschrijving<br><br>$Website->Adres<br><br>$Website->Mail')\"");
else if $Website->Mail not empty it must display the following onmouseover
onmouseover=\" this.T_WIDTH=200; return escape('<center><br><img width=150 src=$Website->Image></center><br><br>$Website->Omschrijving<br><br>$Website->Adres<br><br>$Website->Mail')\"");
$Websites = mysql_query("SELECT * FROM StartpaginaWebsites WHERE DochterID = '$Dochtersite->ID' AND Categorie = '$Categorie->ID' ORDER BY Plaats") or die(mysql_error());
if(!mysql_num_rows($Websites)) {
echo("<i style='color:#999999'>Er staan nog geen websites in deze categorie.</i><hr>");
}
else {
while($Website = mysql_fetch_object($Websites)) {
if($Website->Adres) {
echo("-<a href='ganaar.php?id=$Website->ID' target='_blank' style='color:$Categorie->KleurCategorieLinks' onmouseover=\" this.T_WIDTH=200; return escape('<center><br><img width=150 src=$Website->Image></center><br><br>$Website->Omschrijving<br><br>$Website->Adres<br><br>$Website->Mail')\"");
if($Dochtersite->StatusbalkInfo) {
echo(" onmouseover='window.status=\"$Website->Hits hit");
if($Website->Hits != 1) {
echo("s");
}
echo(" sinds ".date("d-m-Y",$Website->Datum).", $Website->Adres\";return true' onmouseout='window.status=\"\"; return true'");
}
echo(">");
}
echo stripslashes($Website->Naam);
if($Website->Adres) {
echo("</a>");
}
if($Website->TipNieuw == "1") { echo(" <span class=Tip>Tip!</span>"); }
elseif($Website->TipNieuw == "2") { echo(" <span class=Nieuw>Nieuw!</span>"); }
echo("<br>\n");
}
}