PDA

View Full Version : help with yet another php code



is0lized
March 2nd, 2002, 08:50
would this work, i never studied any php and all i know is how to include files and such



<?if.ip(='255.255.255.255')
print('&nbsp;')
else.print('<a href="ad.url"><img src="ad.gif"></a>')
?>


i think thats how it goes, i dunno..like i said i never studied php, cgi or any other backend programing

megapuzik
March 2nd, 2002, 09:02
this ->


<?
if($ip != "255.255.255.255")
{
print "<a href="ad.url"><img src="ad.gif"></a>";
}
?>

is0lized
March 2nd, 2002, 09:14
well i want my ip not to show something, but i want everyone elses ip to show it

megapuzik
March 2nd, 2002, 11:17
thats what I did....
the
<a href="ad.url"><img src="ad.gif"></a> will be visible only if the ip is not 255.255.255.255.

is0lized
March 2nd, 2002, 11:28
ok cool thanks, i didnt really need the code but i will keep it on hand, i just wanted to see if my php skills were any good... hehe


thanks for your help man :)