I am having trouble getting this mod to work.
I keep getting the following error:
Parse error: parse error in /home/.radmilla/libertyb/libertybookshop.com/shop/suggestions/db_connect.php on line 9
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/.radmilla/libertyb/libertybookshop.com/shop/suggestions/index.php on line 39
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/.radmilla/libertyb/libertybookshop.com/shop/suggestions/index.php on line 40
My db_connect.php file (in the suggestions subdirectory) is as follows:
<?
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_db_connect = 'myhostname';
$database_db_connect = 'mydatabase';
$username_db_connect ='myusername';
$password_db_connect = 'mypassword';
$db_connect = mysql_pconnect($hostname_db_connect, $username_db_connect, $password_db_connect) or trigger_error(mysql_error(),E_USER_ERROR;
?>
I have substituted username/password/database/hostname info with my real info.
Lines 39 and 40 from index.php (also in the suggestions subdirectory) are:
mysql_select_db($database_db_connect, $db_connect);
$Result1 = mysql_query($insertSQL, $db_connect) or die(mysql_error());
I have no idea what I am doing wrong. Thanks for any help you can provide.
|