Admin Wrote:
Hi.
You receive PHP error from your web server.
This problem isn't related to Codelobster.
Regards,
Codelobster Team.
Thank you for the quick answer.
Sorry that it took so long for my answer, but as I said, I'm new in the use of WAMP + Codelobster.
Meanwhile i looked what could be the reason and I've found it.
I give my solution here, maybe another can use this solution too.
The problem is in the new WAMP-server. This new one now has build in two databases: MySQL and MariaDB.
Both are working but the MySQL uses the general port 3306 and MariaDB uses the port 3307.
Normally the DB_PORT does not need to be mentioned in $db_connect, so it Always is 3306.
Now I have to include the portnumber if I want to use MariaDB.
This is the right connectionscript that works with the definition of the MariaDB-port 3307.
Code:
<?php
// Database settings WAMP-MariaDB-Webserver
define('DB_HOST','localhost');
define('DB_USER','root');
define('DB_PASSWORD','');
define('DB_NAME','_font_web_mdb_php71');
define('DB_PORT',3307);
// mysqli_connect opent de juiste database in PHP
= mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME, DB_PORT);
if(!)
die('<p>Momenteel kan niet geconnecteerd worden met de database "_font_web_mdb_php71".</p>');
// Stel de te gebruiken karakterset in voor de database. Nodig voor accentletters!
mysqli_set_charset(, "utf8");
date_default_timezone_set('Europe/Brussels');
// Stel de gewenste taal in. Omdat het op verschillende systemen een verschillende syntaxis kan zijn, neem je best zoveel mogelijke aanduidingen.
setlocale( LC_ALL, 'nl_BE', 'nl-BE', 'Dutch_Netherlands', 'Dutch', 'nl_NL', 'nl-NL', 'nl', 'nl_NL.ISO8859-1', 'nl_NL.UTF-8', 'nld_nld', 'nld', 'nld_NLD', 'NL_nl' );
?>