Checking inserts
| From: | Russ Michell | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Checking inserts | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-14505@lists.php.net to get a copy of this message | ||
Hi all:
I'm wondering what you guys use as your 'standard' method of checking for repeated
inserts. (as
opposed to having to cane the database with a 'select' statement when a check needs to be
made..)
I think I have to use mysql_affected_rows() and/or mysql_insert_id(), unfortunately I don't see
how
these might do the job. Any help or pointers to web-resources would be most helpful!
If useful, I'm using the old fella: MySQL3.22.32
Cheers all.
Russ
#-------------------------------------------------------#
"Believe nothing - consider everything"
Russ Michell
Anglia Polytechnic University Webteam
Room 1C 'The Eastings' East Road, Cambridge
e: r.j.michell@apu.ac.uk
w: www.apu.ac.uk/webteam
www.theruss.com
#-------------------------------------------------------#