AdamDuritz99
Diamond Member
for some reason this code won't work
--------------
<?php
#banner
$result = mysql_query("SELECT * FROM options",$db);
while ($row = mysql_fetch_object($result))
{
$banners = $row->banners;
$footer = $row->footer;
$firstfoot = $row->firstfoot;
}
if ($banners == "yes"😉
{ $bannerR = "include("banners.php"😉";}
if ($footer == "yes"😉
{$footerR = "include("banners.php"😉";}
if ($firstfoot == "1"😉
{echo "$footerR <br>$bannerR";}
else
{echo "$bannerR <br>$footerR";}
?>
</body>
</html>
-----------------
i thinks its farily obvious what i'm trying to do.
is there any errors?
peace
sean
--------------
<?php
#banner
$result = mysql_query("SELECT * FROM options",$db);
while ($row = mysql_fetch_object($result))
{
$banners = $row->banners;
$footer = $row->footer;
$firstfoot = $row->firstfoot;
}
if ($banners == "yes"😉
{ $bannerR = "include("banners.php"😉";}
if ($footer == "yes"😉
{$footerR = "include("banners.php"😉";}
if ($firstfoot == "1"😉
{echo "$footerR <br>$bannerR";}
else
{echo "$bannerR <br>$footerR";}
?>
</body>
</html>
-----------------
i thinks its farily obvious what i'm trying to do.
is there any errors?
peace
sean