Databridge 2: Oct 8, 2018 (Version: 2.3.0) - results pages
I ran my first test today of the new DB 2. Nothing crashed when creating the back end admin area. YEAH!! I used the MySQLi set up with no difficulty.
Then I create a page to receive the results of the database. DW wasn't seeng the bindings using the existing Li set up. The only way I could get the results page to deliver results was to set up a second binding with the traditional mysql approach. Revising the admin area, the admin did fill the database and the results did show on the page. But what am I missing if the results page won't recognize the Li version?
<?php require_once('../Connections/biznew2.php'); ?>
<?php require_once('../Connections/biznew.php'); ?>
<?php require_once('../webassist/mysqli/rsobj.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_biznew2, $biznew2);
$query_Recordset1 = "SELECT * FROM newpc";
$Recordset1 = mysql_query($query_Recordset1, $biznew2) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);?>
<?php
$RecordsetLi = new WA_MySQLi_RS("RecordsetLi",$biznew,1);
$RecordsetLi->setQuery("SELECT * FROM newpc");
$RecordsetLi->execute();
?>
What am I missing in setting up the results page to receive Li instead of standard?
More detail. I inserted another binding and selected Li in the type. Then the first record showed up. However, in order to apply the "repeat region" the choice was only the non Li version. I couldn't access the second binding that used the Li set up.