Jump to content


Photo

Whats wrong with my code>?

coding problems

  • Please log in to reply
2 replies to this topic

#1 simon26r

simon26r

    Newbie

  • New Members
  • Pip
  • 5 posts

Posted 23 September 2013 - 02:46 PM

Hello.
Can anyone tell me what i might have done wrong in this code. Maybe there is a basic error
 
<?php
$ip=gethostbyname('www.utv.com')
if($ip = 35.235.53.176) 
echo "Connection Is Set up";
} else 
echo "Connection Is Not Set UP";
}
?>
 
Thanks in advance
 
 


#2 AbraCadaver

AbraCadaver

    Cracka Memba

  • Gurus
  • 1,889 posts
  • LocationThe Republic of Texas

Posted 23 September 2013 - 02:54 PM

Well, you didn't state why you think something is wrong with it (I assume it's not working), but:

if($ip == '35.235.53.176') {
    echo "Connection Is Set up";
} else {
    echo "Connection Is Not Set UP";
}

Edited by AbraCadaver, 23 September 2013 - 02:57 PM.

mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.

#3 simon26r

simon26r

    Newbie

  • New Members
  • Pip
  • 5 posts

Posted 23 September 2013 - 03:00 PM

thank you..

sorry for acting like a noob, but was posting for a friend.

Ill get some more info if he as a problem

 

Thanks

AbraCadaver






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com