Okay, I fixed the first problem in the suggestions.tpl.
But I'm still getting this error after I click "submit"
Fatal error: Failed opening required 'Connections/db_connect.php' (include_path='./:/usr/local/lib/php') in /home/adamc/curpiermotorsport-www/xcart/suggestions/index.php on line 1
It seems like it's not connecting to the database?
I did fix the db_connect.php file. It now resides in the Connections folder in the xcart directory.
Here's what I replaced in the db_connect.php
Quote:
<?
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_db_connect = 'localhost';
$database_db_connect = 'My Datebase Name';
$username_db_connect ='My Database Username';
$password_db_connect = 'My Database Password';
$db_connect = mysql_pconnect($hostname_db_connect, $username_db_connect, $password_db_connect) or trigger_error(mysql_error(),E_USER_ERROR);
?>
|
Is this correct?
Also, when I go to the admin page, I get these errors:
Warning: Cannot send session cookie - headers already sent by (output started at /home/adamc/curpiermotorsport-www/xcart/admin/admin.php:2) in /home/adamc/curpiermotorsport-www/xcart/admin/admin.php on line 4
Warning: Cannot send session cache limiter - headers already sent (output started at /home/adamc/curpiermotorsport-www/xcart/admin/admin.php:2) in /home/adamc/curpiermotorsport-www/xcart/admin/admin.php on line 4