Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

getting this error on checkout


andrewp

Recommended Posts

Posted

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/httpd/vhosts/bestdamngolfdeals.com/httpdocs/includes/functions/database.php:13) in /home/httpd/vhosts/bestdamngolfdeals.com/httpdocs/includes/functions/database.php on line 13

 

this happens when I try to goto my link sitename.com/checkout_process.php

 

is this the correct link to goto the checkout? Here is my file up to line 20

 

 

------ bof

 

 

<?php

/*

$Id: database.php,v 1.21 2003/06/09 21:21:59 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') {

global $$link;

 

if (USE_PCONNECT == 'true') {

$$link = mysql_pconnect($server, $username, $password);

} else {

$$link = mysql_connect($server, $username, $password);

}

 

if ($$link) mysql_select_db($database);

 

 

--- ends line 22

 

 

thanks

andrew

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...