Taylor_1978
01-21-2005, 11:48 PM
Hiya,
This is a snippet of code I have on my site:
$db[name] = "league";
mysql_db_query($db[name], "INSERT INTO orders VALUES ('','$ver','$first_name','$address','$city','$state','$postcode','$country','$phone','$email','$doma in1','$ext1','$domain2','$ext2','$domain3','$ext3','$domain4','$ext4','$domain5','$ext5','$payment', '0')");
Works fine, and its MySQL 4.0.1-alpha
But when I uploaded my files to my domain, it only works like this:
mysql_db_query($db[name], "INSERT INTO $db[name].orders VALUES ('','$ver','$first_name','$address','$city','$state','$postcode','$country','$phone','$email','$doma in1','$ext1','$domain2','$ext2','$domain3','$ext3','$domain4','$ext4','$domain5','$ext5','$payment', '0')");
For some reason I have to mention the $db[name] twice in the sports I've shown. - its MySQL 4.0.22-standard
I have about 20 pages of database activity - I really do not want to have to go through every single page and find every single connect. Anyone know why this would be occouring or somehow I can fix this?
This is a snippet of code I have on my site:
$db[name] = "league";
mysql_db_query($db[name], "INSERT INTO orders VALUES ('','$ver','$first_name','$address','$city','$state','$postcode','$country','$phone','$email','$doma in1','$ext1','$domain2','$ext2','$domain3','$ext3','$domain4','$ext4','$domain5','$ext5','$payment', '0')");
Works fine, and its MySQL 4.0.1-alpha
But when I uploaded my files to my domain, it only works like this:
mysql_db_query($db[name], "INSERT INTO $db[name].orders VALUES ('','$ver','$first_name','$address','$city','$state','$postcode','$country','$phone','$email','$doma in1','$ext1','$domain2','$ext2','$domain3','$ext3','$domain4','$ext4','$domain5','$ext5','$payment', '0')");
For some reason I have to mention the $db[name] twice in the sports I've shown. - its MySQL 4.0.22-standard
I have about 20 pages of database activity - I really do not want to have to go through every single page and find every single connect. Anyone know why this would be occouring or somehow I can fix this?