close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Repeating Tables Not Showing any data

Thread began 3/10/2010 12:52 pm by dinohorn397192 | Last modified 3/11/2010 9:59 am by dinohorn397192 | 1301 views | 3 replies |

dinohorn397192

Repeating Tables Not Showing any data

I have created my recordset successfully.
I have created my repeating table successfully.

But I could never get any information to show up. When I tested my recordset I could see all the data. I have no idea what's going on.

<?php require_once('Connections/pawtabs_db.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;
}
}

$maxRows_pawtabs = 36;
$pageNum_pawtabs = 0;
if (isset($_GET['pageNum_pawtabs'])) {
$pageNum_pawtabs = $_GET['pageNum_pawtabs'];
}
$startRow_pawtabs = $pageNum_pawtabs * $maxRows_pawtabs;

$colname_pawtabs = "-1";
if (isset($_SESSION['UserID'])) {
$colname_pawtabs = (get_magic_quotes_gpc()) ? $_SESSION['UserID'] : addslashes($_SESSION['UserID']);
}
mysql_select_db($database_pawtabs_db, $pawtabs_db);
$query_pawtabs = sprintf("SELECT * FROM paws WHERE UsersId = %s", GetSQLValueString($colname_pawtabs, "int"));
$query_limit_pawtabs = sprintf("%s LIMIT %d, %d", $query_pawtabs, $startRow_pawtabs, $maxRows_pawtabs);
$pawtabs = mysql_query($query_limit_pawtabs, $pawtabs_db) or die(mysql_error());
$row_pawtabs = mysql_fetch_assoc($pawtabs);

if (isset($_GET['totalRows_pawtabs'])) {
$totalRows_pawtabs = $_GET['totalRows_pawtabs'];
} else {
$all_pawtabs = mysql_query($query_pawtabs);
$totalRows_pawtabs = mysql_num_rows($all_pawtabs);
}
$totalPages_pawtabs = ceil($totalRows_pawtabs/$maxRows_pawtabs)-1;

?>
<?php
// RepeatSelectionCounter_1 Initialization
$RepeatSelectionCounter_1 = 0;
$RepeatSelectionCounterBasedLooping_1 = false;
$RepeatSelectionCounter_1_Iterations = "3";
?>
<head></head>


<body>
<table>
<?php do { ?>
<tr>
<?php
// RepeatSelectionCounter_1 Begin Loop
$RepeatSelectionCounter_1_IterationsRemaining = $RepeatSelectionCounter_1_Iterations;
while($RepeatSelectionCounter_1_IterationsRemaining--){
if($RepeatSelectionCounterBasedLooping_1 || $row_pawtabs){
?>
<td>&nbsp;</td>
<?php
} // RepeatSelectionCounter_1 Begin Alternate Content
else{
?>
<td>&nbsp;</td>
<?php } // RepeatSelectionCounter_1 End Alternate Content
if(!$RepeatSelectionCounterBasedLooping_1 && $RepeatSelectionCounter_1_IterationsRemaining != 0){
if(!$row_pawtabs && $RepeatSelectionCounter_1_Iterations == -1){$RepeatSelectionCounter_1_IterationsRemaining = 0;}
$row_pawtabs = mysql_fetch_assoc($pawtabs);
}
$RepeatSelectionCounter_1++;
} // RepeatSelectionCounter_1 End Loop
?>
</tr>
<?php } while ($row_pawtabs = mysql_fetch_assoc($pawtabs)); ?>
</table>
</body>
<?php
mysql_free_result($pawtabs);
?>

Sign in to reply to this post

dinohorn397192

My Output is a white screen

My Output is a white screen

Sign in to reply to this post

Jason ByrnesWebAssist

after adding the repeating table to the page, you need to populate the tabel cell with the data you wish to display.


In design view, place you cursor in the main tabel cell, and add any text or dynamic data bindings you wish to display.

Sign in to reply to this post

dinohorn397192

Got it, thanks!

Sign in to reply to this post

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