Page 2 of 2

Posted: Thu Oct 12, 2006 9:51 pm
by nickman013
It works perfect. I love it.

Now, heres another question. If I have two IP addresses I want to make different colors, How would I do that?

For example I would want 123.333.33.3 to be red background, and I would like 127.0.0.1 to Be green background. The IPs are just a example. I will replace them with the correct ones when I get the code working.


THANKS SO MUCH!!!!!!!!

Posted: Thu Oct 12, 2006 9:55 pm
by John Cartwright
A simple if statement

Code: Select all

echo '<tr';
if ($ip == '127.0.0.1') echo ' bgcolor=red';
elseif ($ip == '127.0.0.1') echo ' bgcolor=green';
echo '>';
Something along those lines.. I recommend you check for the existance of the ip address first though..

Posted: Thu Oct 12, 2006 10:05 pm
by nickman013
Thanks Alot!!!!