Hoe kan dit?
INSERT INTO login_attempts (ip, attempts, last_attempt)
VALUES ('127.0.0.1', 1, NOW())
ON DUPLICATE KEY UPDATE attempts = attempts + 1, last_attempt = NOW()
Iemand die een idee heeft? Of zie ik wat over het hoofd?
Update:
Ah, ik moest 'm UNIQUE maken. Fixt! :-P