I am trying the simple code below to print a background in a <td> according to IP number in an intranet environment. No matter what, it is echoing the first image all the time. Please someone, what am I doing wrong?
<?php
if($HTTP_SERVER_VARS['REMOTE_ADDR'] = "192.168.2.60")
{
echo "yourloc.gif";
}
else
{
echo "connected.gif";
}
?>