Jump to content

need help with inserting data in more than one table


elements708

Recommended Posts

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.