Jump to content

[SOLVED] Inserting IP ADDRESS into mySQL using a PHP form


webmaster1

Recommended Posts

Hi Freaks!  ;D

 

I'm trying to insert an ip address into a mySQL table:

 

$ipaddress = getenv('REMOTE_ADDR');

 

My ip address field is set as mediumint(9) but I only end up with four digits in my database.

 

Is my field set incorrectly or do I need to adjust my php code?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.