I have 2 tables:
iplistbots - contains a list of ip addresses in a field called ipaddress (which is also the primary key)
logfile - which has several fields but the relevant ones being IPaddress and Bot
In for each ip address in the ipaddress field in the logfile table, I want to do a lookup in the iplistbots table. If a match exists, enter the value Bot in the Bot field of the logfile table. If not, just echo "no match".
Any idea on how to code this?
Thanks,
Jon