WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
require_once(WB_PATH.'/config.php');require_once(WB_PATH.'/manager/main.functions.php');require_once(WB_PATH.'/framework/class.database.php');load_website_config();
$mysql = new mysql;$sql = "SELECT ...";$res = $mysql->query($sql);
Should this work just by adding that code within a page?
$mysql = mysqli_connect('localhost', 'username', 'password');mysqli_select_db($mysql, 'mydb');etc.
$db = mysqli_connect( my parameters);if(!$db) { die("Could not connect: " . $mysqli_error());}
Could not connect:
<?php /* open tag used for code detection in the forum */$query = $database->query("SELECT `page_title` from ".TABLE_PREFIX."pages where `page_id`='1' ") ;if($query && $query->numRows() == 1) { $row = $query->fetchRow(); echo $row['page_title'];} else { echo "no data";}