Connect to database using include '../res/x5engine.php';
Autor: Mark Fletcher
Visitado 2255,
Seguidores 1,
Compartilhado 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
Publicado em
Hi Mark,
you can read the WebSite X5 Developer's Guide:
http://devguide.websitex5.com/en/latest/php-api/database-class/
Autor
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.