Jump to content

Insert into 2 tables


mattichu

Recommended Posts

$con = mysql_connect("localhost","****","****");

if (!$con)

  {

  die('Could not connect: ' . mysql_error());

  }

 

mysql_select_db("checkmyw_database", $con);

 

mysql_query("INSERT INTO requests (username, password, email, weavecode, mobile, jobtitle, relationship, sexuality, venue, type)

VALUES ('$me', '$pw', '$email','1999','$mobile','$job','$relationship','$sexuality','$venue','newuser')");

 

 

mysql_query("INSERT INTO members (username, password, email, weavecode, mobile, jobtitle, relationship, sexuality,)

VALUES ('$me', '$pw', '$email','1999','$mobile','$job','$relationship','$sexuality',)");

 

 

 

mysql_close($con);

 

 

 

any idea why this doesn't work? :(

Link to comment
https://forums.phpfreaks.com/topic/253819-insert-into-2-tables/
Share on other sites

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.