Building on Prisoner's answer:
I'd add a date field to this table and do an insert ... ON DUPLICATE KEY UPDATE
Bonus field: ip_log_page
so you can use this on multiple pages.
you can also run a delete query based on the date to delete stuff from yesterday and before - either cron or just part of the script on a web page.
CREATE TABLE ip_log
(
ip_log_ip VARCHAR(40),
ip_log_date DATE,
ip_log_visits TINYINT(1),
ip_log_page varchar(255),
PRIMARY KEY(ip_log_page,ip_log_ip,ip_log_date),
);
keep in mind that tinyint(1) has an upper limit of 127/255 (signed/unsigned) so if your needs ever change and you need more than that you'll need to adjust your field