Thread: php if / else
View Single Post
  #1 (permalink)  
Old 02-16-2007, 03:09 PM
salaam205 salaam205 is offline
Junior Member
 
Join Date: Feb 2007
Posts: 21
salaam205 is on a distinguished road
Thumbs up php if / else

hi, it is my first thread in this clup so i would like to give you all a php code
this code is
example you have a page and we need if we open this page to say ( hi admin welcome back) if i am the admin if not ( you are not the admin )
PHP Code:
<?  
if ($REMOTE_ADDR == "88.213.6.149")
 echo 
"hi admin welcome back";
else
 echo 
"you are not the admin";
?>
change this (88.213.6.149) to your ip
that is all thanks

Reply With Quote