PDA

View Full Version : IP address field, want to wipe it clean.


TORON
02-14-2004, 12:13 PM
I would like to remove all the IPaddress enteries for a specific user.

Looking at mysql database I see the IP address for someone when they made a post.

I would like to remove all records of an IP address for a specific user.

Any hacks or suggestion on how to do this?

Thanks.

Andreas
02-14-2004, 12:22 PM
UPDATE post SET ipaddress='' WHERE userid=1234;
UPDATE search SET ipaddress='' WHERE userid=1234;
UPDATE threadrate SET ipaddress='' WHERE userid=1234;
UPDATE user SET ipaddress='' WHERE userid=1234;


1234 should be replaced by the real UID of course ;)

TORON
02-14-2004, 02:09 PM
Thank you, works great, I'm starting to understand this now.

One more area people should check is
adminlog

How about removing them all? Wildcard rather then a value for userID?

Xenon
02-14-2004, 02:17 PM
for removing all ip's you just have to remove the WHERE clause :)