...

View Full Version : Fixed



Crazydog
06-10-2005, 04:51 AM
Edit:
Never mind. I rewrote it and fixed it.

Serex
06-10-2005, 05:14 AM
<?php
include ("<djstatusv1.8.1/config.php");

if ($address == "requests.php")
{
echo "<img src=\"images/playing.gif\">";
}
else
{
echo "<img src=\"images/notplaying.gif\">";
}
?>


umm i have no idea what else you have on that page... but it looks to be really messy (mass if statements). you also need a == when comparing not just =

= is generally for assigning a variable a value. ie. $address = "blah";
== is a comparison. i.e if ($address == "blah) { echo "true"; }

just keep your formatting tabulated so it makes it easier for you to follow as well.

also need to escape " with \ when your echoing.

edit: i also noticed in your include you have "<djstatusv1.8.1/config.php" is that ment to be just djstatusv1.8.1 without the < ?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum