MySQL Forums
Forum List  »  PHP

Re: Adding a filename to a MySql database
Posted by: Rick James
Date: November 23, 2009 10:28AM

Is your question about doing 2 inserts, each into a different table? Call mysql_query twice.

Is your concern about transactional semantics? The use InnoDB and make 4 calls, the first being 'START TRANSACTION' and the last being 'COMMIT'.

My comment had to do with the common error of not escaping special characters when constructing an INSERT statement.

Options: ReplyQuote


Subject
Written By
Posted
Re: Adding a filename to a MySql database
November 23, 2009 10:28AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.