Masked Crusader
05-21-2010, 09:26 PM
Hello.
I am trying to create a new SQL string in a vB script so that the data that is being collected also gets populated on another off-server database.
On submission of the data, I am doing this:
$con = mysql_connect("myipaddress", "myusername", "mypassword");
mysql_select_db('mydbname', $con);
$register_sql = "mySQLstring";
mysql_query($register_sql, $con) or die(mysql_error());
mysql_close($con);
It is not connecting to the database though. It seems that the current vBulletin connection might be screwing up somehow.
Any ideas?
I am trying to create a new SQL string in a vB script so that the data that is being collected also gets populated on another off-server database.
On submission of the data, I am doing this:
$con = mysql_connect("myipaddress", "myusername", "mypassword");
mysql_select_db('mydbname', $con);
$register_sql = "mySQLstring";
mysql_query($register_sql, $con) or die(mysql_error());
mysql_close($con);
It is not connecting to the database though. It seems that the current vBulletin connection might be screwing up somehow.
Any ideas?