Posts: 1,832
Location: Somewhere else entirely
|
You could probably just run the query as you have it there, then use the PHP function mysql_affected_rows() to find out how many rows got updated. I fthis is zero you can fire of another INSERT query to put the new date in.
My sig is a 'quine' - a program that prints it's own source code, including the parts that do the printing.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';
Please login or register to view this content. Registration is FREE (aka MSN handwriting for forums)
|