How might I go about doing an insert into a database across multiple, connected tables? Is it exactly the same as when doing a select statement with joins? Would it like something like this? Or can you not do joins on inserts? If not joins, how else can I connect the tables on an insert so that all values go into appropriate fields in appropriate tables?
$query = "INSERT INTO stories, wp_users.ID, writing (user_ID, SID, story_name, story_text)
VALUES ('$user_ID', "$the_SID, '$story_name','$story_text'
LEFT JOIN writing ON stories.SID = writing.SID
LEFT JOIN wp_users ON stories.ID = wp_users.ID
WHERE stories.SID = $the_SID");
)";