Jump to content

Query Not Running


Hartley

Recommended Posts

I have a setup script to setup member accounts, and for some reason, it won't run multiple queries for me.

 

$conn1 = mysql_connect($dbhost1, $dbuser1, $dbpass1) or die ('Error connecting to mysql');
mysql_select_db($dbname1);

mysql_query("INSERT INTO user (forumid, username, joindate) VALUES ('$forumid', '$username', '$joindate')") or 

die(mysql_error());

mysql_query("INSERT INTO attunement (forumid) VALUES ('$forumid')") or die(mysql_error());

mysql_close($conn1);

 

The first one runs just fine, but the second one doesn't at all and I simply can't figure out why.

Link to comment
https://forums.phpfreaks.com/topic/59254-query-not-running/
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.