The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Returning the ID's of deleted rows?
I have a query that looks exactly like this:
PHP Code:
I need this for a later query that looks like this: PHP Code:
I would be very thankful if you could help. |
#2
|
||||
|
||||
hmm i don't know if this is dooable but you can do a workaround with a query you have to run before the delete query
SELECT id FROM... then DELETE from cat then Delete from images.. |
#3
|
||||
|
||||
True, that way wouldn't be hard, and I was about to result to that, but I was just seeing if it could be done in some other simpler trick.
Too bad it can't be done with something simple like how you can return the auto_increment id of an INSERT command using $DB_site->insert_id(); PHP needs a delete_ids(); that functions like insert_id(); but for the DELETE query (and can return many values). [high]* Velocd shrugs [/high] Thanks though |
#4
|
|||
|
|||
Such a function is a nice idea in concept but doesn't apply: insert_id() returns the newly created id of an auto_increment column. Nothing new is generated so nothing can be retrieved.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|