Jump to content

GiacJr

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Everything posted by GiacJr

  1. Yes, and as I said, once we get bigger, we will be looking at better ways, but for now I'd like to just get this script working.
  2. It's only for a small website and to prevent people from using scripts to register hundreds of accounts. If it gets bigger, we'll find better ways to ensure we're not exploited, but for now, this is the best option.
  3. I'm trying to make my register script check the database's IP column and compare it with the user's IP. If the User's IP equals that in the DB column, it should say "Sorry, there is already an account registered with your IP Address. Please log in.", and if there's no IP match, it should allow them to continue with registering. I've been tinkering around with this for a while and I can't seem to figure it out. Any help would be appreciated if ($_SERVER['REMOTE_ADDR'] == mysql_query("SELECT ip FROM users")) { die('Sorry, there is already an account registered with your IP Address. Please <a href="/login.php>log in.</a>'); }else{ echo ''; } I think the problem is with the mySQL query...
×
×
  • 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.