INSERT INTO `log_table` (`ip_address`, `created_at`) VALUES(INET6_ATON(?), NOW());
Code (SQL):
I have no questions with above code as it is self-explanatory.
But then he says that when you want to search an IP, do this:
SELECT INET6_NTOA(`ip_address`) AS...
Code (SQL):
from MySQL https://ift.tt/2sQjlvT
via IFTTT
0 Comments