I'm also new to the forums. 😃
Anyway, I've been trying to find a simple solution for this. I've been told it can be done with one query.
I have a query that looks exactly like this:
$DB_site->query("DELETE FROM categories WHERE FIND_IN_SET('$catid',parentlist)>0" );
I need to somehow return the ID's of the rows deleted from this query. Those ID's being the values of the first column [font=courier]auto_increment 'categoryid'[/font] of the table [font=courier]categories[/font].
I need this for a later query that looks like this:
$DB_site->query("DELETE FROM images WHERE categoryid IN ($deletelist)" );
[font=courier]$deletelist[/font] being the rows deleted in the first query, arranged in a comma seperated list using implode().
I would have great gratitude toward anyone who can help me with this problem. 😉
As you might have noticed by the $DB_site class, I'm using this in vBulletin.