elements708 Posted August 25, 2008 Share Posted August 25, 2008 Currently I have data being inserted into one table which is this $sql = "INSERT INTO user (username, `password`, email, ip) VALUES ('$username','$pass','$email','$ip')"; $result = mysql_query($sql, $connection) or die(mysql_error()); but I want to add another insert into which would be for another table called members how do i go about by doing that, thanks for your input everyone. Link to comment https://forums.phpfreaks.com/topic/121177-need-help-with-inserting-data-in-more-than-one-table/ Share on other sites More sharing options...
Drezard Posted August 25, 2008 Share Posted August 25, 2008 Does it have the exact same column names? Or else just write another question and execute it after this one? Daniel Link to comment https://forums.phpfreaks.com/topic/121177-need-help-with-inserting-data-in-more-than-one-table/#findComment-624682 Share on other sites More sharing options...
elements708 Posted August 25, 2008 Author Share Posted August 25, 2008 yes the column names are the same Link to comment https://forums.phpfreaks.com/topic/121177-need-help-with-inserting-data-in-more-than-one-table/#findComment-624696 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.