I don't have a good example right now, but could you help give me some context please?
I am wrapping up a new release that allows Registered Users to Comment on Articles on my website. (Comments must be approved by me before they appear.)
It seems like two things would be useful for "user forensics" on my website...
1.) From which IP Address did a User originally register?
2.) For each Comment, from which IP Address is a User Commenting?
So in either case, what do I do with your snippet above?
Do I do something like...
$currentIP = $_SERVER['REMOTE_ADDR']
// Build query.
$q = "INSERT INTO member(email, hash, first_name, activation_code, [B]registrationIP[/B], created_on)
VALUES(?, ?, ?, ?, ?, NOW())";
Also, is there anyway that using that function would give a "False Positive" or a result that is somewhat misleading?