![]() |
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. ;) |
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.. |
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 ;) |
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.
|
All times are GMT. The time now is 09:54 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|