Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Author « Topic »  

ECT Moderator

95440 Posts

Posted - 05/27/2017 :  03:01:47  

We've seen a few people switching to PHP 7 recently and that's good as it is supported by ECT from version 6.6 and 7.1 from ECT v6.7. A couple of people have reported problems and generally this is down to the syntax in includes.php and db_conn_open.php

In vsadmin/includes.php if the first line shows as <SCRIPT language="php"> change the line from

<SCRIPT language="php">



and the last line from




.and then make sure you db_conn_open.php is in this format but with your database details


// You host should be able to provide you with these settings if you do not know them already

$db_username = ""; // Your database login username
$db_password = ""; // Your database login password
$db_name = ""; // The name of the database you wish to use
$db_host = "localhost"; // The address of the database. Often this is localhost, but may be for example

// Please do not edit anything below this line. //

$GLOBALS['ectdatabase'] = new mysqli($db_host, $db_username, $db_password, $db_name);
print '<html><head><title>Database connect error</title><style>div{ margin:20px }</style></head>';
print '<body><div>Database Connect Error (' . mysqli_connect_errno() . ') ' . mysqli_connect_error() . '</div>';
print '<div>You need to set your database connection in vsadmin/db_conn_open.php</div>';
print '<div>For help setting your database connection please see...<br />';
print '<a href="' . 'phphelp/ecommplus/instructions.asp#dbconn" target="_blank">Database Connection Instructions</a></div>';
print '<div>We also have a support forum here...<br />';
print '<a href="' . 'support/" target="_blank">Support Forum</a></div>';


Please feel free to review / rate our software
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022
This page was generated in 0.02 seconds. Snitz Forums 2000