Hello,
I have a Table with online Users . Containing only 2 fields, a username and a timestamp.
Is it possible to Update a record without actually updating anything, because there are no fields to update. The timstamp field will reset to current time wenn updatet
UPDATE usersonline WHERE username = $username ; ?
Thanks in advance!
Updating a Row without Updating anything ? (Timestamp)
Moderator: General Moderators
-
kettle_drum
- DevNet Resident
- Posts: 1150
- Joined: Sun Jul 20, 2003 9:25 pm
- Location: West Yorkshire, England
Code: Select all
UPDATE usersonline SET time = NOW() WHERE username = '$username'