Excuse my bad English
But I need this to work:
<?
$media2 = mysql_query("SELECT id,content1,page FROM database WHERE page='website'") or die (mysql_error());
$media3 = mysql_query("SELECT id,text FROM db") or die (mysql_error());
if($spelen2 = mysql_fetch_assoc($media2))
while ($spelen3 = mysql_fetch_assoc($media3)); {
?>
<?
if(empty($spelen2['content1']))
{
echo'';
} else {
echo'Something';
}
?>
<? } ?>
I want if empty to show all items from db. If not, show content from datbase. I can't seem to make it work.
Aucun commentaire:
Enregistrer un commentaire