MySQL Forums
Forum List  »  Newbie

Re: Inserting into two tables at same time
Posted by: Peter Brawley
Date: February 22, 2014 10:58PM

To protect against sql injection, you should insert user data only after running it through mysqli_real_escape_string(). Then assemble the two Insert queries and run them in turn.

Options: ReplyQuote


Subject
Written By
Posted
Re: Inserting into two tables at same time
February 22, 2014 10:58PM


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.