Posted - 01/09/2021 : 02:16:32
Hi Terry, quote: Please install the MySQL Connector for PHP
- This suggests the php version on the server is PHP7 so the MYSQL connector will not exist, it'll be MYSQLI So the problem is in your code for the vsadmin/includes.php and the vsadmin/db_con_open.php file Instead of an opening tag of <?php you have <SCRIPT language="php">and instead of a closing tag of ?> you have </SCRIPT>so open both those files in notepad and follow the instructions here https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=107737 including the database connection method so your db_con_open.php file should look like this (with your user name, database name and password of course <?php
// You host should be able to provide you with these settings if you do not know them already
$db_username = "xxxxxxx"; // Your database login username $db_password = "xxxxxxx"; // Your database login password $db_name = "xxxxxxxx"; // 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 db.yoursite.com
////////////////////////////////////////////////// // Please do not edit anything below this line. // //////////////////////////////////////////////////
$GLOBALS['ectdatabase'] = new mysqli($db_host, $db_username, $db_password, $db_name); if(mysqli_connect_error()){ ob_clean(); print '<html><head><title>Database connect error</title></head><body><div style="margin:20px;clear:both">Database Connect Error (' . mysqli_connect_errno() . ') ' . mysqli_connect_error() . '</div>'; print('<div style="margin:20px;clear:both">You need to set your database connection in vsadmin/db_conn_open.php</div>'); print '<div style="margin:20px;clear:both">For help setting your database connection please see...<br />'; print '<a href="https://www.ecommercetemplates.com/phphelp/ecommplus/instructions.asp#dbconn" target="_blank">https://www.ecommercetemplates.com/phphelp/ecommplus/instructions.asp#dbconn</a></div>'; print '<div style="margin:20px;clear:both">We also have a support forum here...<br />'; print '<a href="https://www.ecommercetemplates.com/support/" target="_blank">https://www.ecommercetemplates.com/support/</a></div>'; die('</body></html>'); } ?> * Database Migrations and Conversions* * ASP to PHP Cart Conversions**Contact Us**Buy The PHP Capture Card Plugin**Rate Our Services/View Our Feedback*
Edited by - Phil on 01/09/2021 02:25:17
|