chrisb
03-07-2007, 10:49 AM
Hello,
In my php page I've written I want to delete:
ANY records in my database where story_id=".$_POST["d$i"])
Now these could be in a table called stories, pictures, sounds, videos
So how do I do a delete on four tables? I tried a simple one with a join ie:
mysql_query("DELETE FROM a.stories, b.pictures FROM stories, pictures WHERE story_id=".$_POST["d$i"]);
But that does not work.
Can anyone help with this sql please
In my php page I've written I want to delete:
ANY records in my database where story_id=".$_POST["d$i"])
Now these could be in a table called stories, pictures, sounds, videos
So how do I do a delete on four tables? I tried a simple one with a join ie:
mysql_query("DELETE FROM a.stories, b.pictures FROM stories, pictures WHERE story_id=".$_POST["d$i"]);
But that does not work.
Can anyone help with this sql please