Connect to database using include '../res/x5engine.php';
Autore: Mark Fletcher
Visite 2274,
Followers 1,
Condiviso 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
Postato il
Hi Mark,
you can read the WebSite X5 Developer's Guide:
http://devguide.websitex5.com/en/latest/php-api/database-class/
Autore
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.