Jump to content

soccerjunki

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Everything posted by soccerjunki

  1. Yea i have, and it worked Thanks alot man
  2. Hi, I'm creating a chat-box application and I'm trying to add IP bans, where the php code checks if the user is banned or not and then insert the chat, but even if the IP address is banned it will still insert the chat. $ipsql = mysql_query("SELECT * FROM bans WHERE ip='$user_ip'" or die (mysql_error())); $bancheck = mysql_num_rows($ipsql); if($bancheck <= 0){ $sql = mysql_query("INSERT INTO chats (user_ip, user_name, chat_body, date_time) VALUES('$user_ip','$user_name','$chat_body',now())") or die (mysql_error()); } Thanks, Soccerjunki
  3. Hey guys, I just need help with a small thing i making a website software i need a code that checks if the URL that the software is being hosted on, exists in my database i think im suppose to use fsockopen or something like that Your hep will be appropriated Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.