title: Storing IP address in MySQL database (IPv4 AND IPv6)
body: <p>Ok, now I'm aware that similar questions have probably been asked a million times but I'm a real novice at this and I'd really appreciate your help here.</p>
  
  <p>Basically, I want to store the visitors IP address in a MySQL for later retrieval and verification. I firstly need to know what type of field I need to use to store the IP address in. I would also like to make the system compatible with IPv6 addresses if possible.</p>
  
  <p>Thanks in advance</p>