Connect to database using include '../res/x5engine.php';
Author: Mark Fletcher
Visited 2253,
Followers 1,
Shared 0
I can connect to my database by including,
<?php
$host = 'localhost';
$db = 'dbname';
$user = 'username';
$password = 'password'
?>
How do I connect using
<?php
include '..res/x5engine.php'; instead
?>
What are the variable names used by x5engine.php to connect to the databaser?
Thanks
Posted on the
Hi Mark,
you can read the WebSite X5 Developer's Guide:
http://devguide.websitex5.com/en/latest/php-api/database-class/
Author
Looks like I have a lot to learn.
Thanks
Mark
I'm sorry for my bad English.
In this article, you can find an example of connection to database using x5engine.php file:
http://quellidelcucuzzolo.blogspot.it/2016/03/visualizzare-dati-database-form-ws-x5.html
I'm sorry, it's in Italian language.