Velocd
06-21-2003, 05:12 PM
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 auto_increment 'categoryid' of the table categories.
I need this for a later query that looks like this:
$DB_site->query("DELETE FROM images WHERE categoryid IN ($deletelist)");
$deletelist being the rows deleted in the first query, arranged in a comma seperated list using implode().
I would be very thankful if you could help. ;)
$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 auto_increment 'categoryid' of the table categories.
I need this for a later query that looks like this:
$DB_site->query("DELETE FROM images WHERE categoryid IN ($deletelist)");
$deletelist being the rows deleted in the first query, arranged in a comma seperated list using implode().
I would be very thankful if you could help. ;)