delete relational data MYSQL
| From: | tbo | Date: | Mon, 19 May 2003 22:33:09 +0000 |
| Subject: | delete relational data MYSQL | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-27900@lists.php.net to get a copy of this message | ||
In php and mysql and dmx, how would one modify the dmx delete record(or
create ones own script) to delete from 2 tables containing "relationships"
data?
EXAMPLE
a table called Books with Author ID's
a table called Authors with ID's
how could I delete all the Author's books from the Books table at the same
time I delete that Author out of the Authors table(the Author id would be
passed in the URL as "AID")?
Any ideas or tutorials?
--
Tim Haskins