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

PHP Repeat Region not working when the repeat region contains a Server Side Include?

Thread began 2/11/2014 7:02 am by Nathon Jones Web Design | Last modified 2/14/2014 10:29 am by Nathon Jones Web Design | 3252 views | 17 replies

Nathon Jones Web Design

My include doesn't have code that should go in the head though. I already have the recordset coded in there and the reason I've chosen includes is because my recordset is different on every page, however the section pertaining to displaying the product information isn't.

If I use Framework build plugins then won't I need to create one for every one of my differing recordsets?

If I have coded the recordset manually in the head of the page above the DOCTYPE:

<?php require_once('Connections/njMySQL.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";
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
return $theValue;

mysql_select_db($database_njMySQL, $njMySQL);
$query_rsPRODFULL = "SELECT LEDid, LEDtitle, LEDproductcode, LEDtypeID, LEDwattage, LEDdimmable, LEDbeamangle, LEDprice, LEDimgtmb, LEDdelete FROM LEDprods WHERE LEDdimmable = 1";
$rsPRODFULL = mysql_query($query_rsPRODFULL, $njMySQL) or die(mysql_error());
$row_rsPRODFULL = mysql_fetch_assoc($rsPRODFULL);
$totalRows_rsPRODFULL = mysql_num_rows($rsPRODFULL);

...and then further down my page I have an include file that is simply calling fields from the above recordset, along with CSS styling and layout obviously, then shouldn't it work?


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





Ease of use


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...