close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Databridge 2: Oct 8, 2018 (Version: 2.3.0) - results pages

Thread began 10/09/2018 2:12 pm by Patrice | Last modified 10/10/2018 11:45 am by Patrice | 45 views | 5 replies

Patrice

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.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...