close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

How do I filter date fields for creating a nested repeat region

Thread began 5/29/2013 9:21 am by info4753 | Last modified 5/29/2013 1:28 pm by info4753 | 628 views | 2 replies

info4753

How do I filter date fields for creating a nested repeat region

I've got a list with dates and a list with events haveing some of the same dates that are inside the dates list. Now I'd like to create a nested repeat that filters the dates not the IDs of the two tables. The following code (see below) works for ID-Filtering but not for date-filtering:

The "filtering-line" works for IDs:
$nested_query_rsRes_reservationen = str_replace("123456789", $row_rsRes_datum['DATUMID'], $query_rsRes_reservationen);

But not for dates
$nested_query_rsRes_reservationen = str_replace("123456789", $row_rsRes_datum['date'], $query_rsRes_reservationen);

Any ideas how this could work?


Also I can't get this similar code block work for dates:

$query_Recordset1 = "SELECT * FROM res_reservationen WHERE res_reservationen.ResDatum = ".$row_rsDatum['Datum']."";

but it works for IDs:

$query_Recordset1 = "SELECT * FROM res_reservationen WHERE res_reservationen.DATUMID = ".$row_rsDatum['DATUMID']."";

Are there any conversions I'm missing here? THANKS for any help!!

-----
<table border="1">
<?php do { ?>
<tr>
<td><?php echo $row_rsRes_datum['Datum']; ?></td>
<td><?php
if ($totalRows_rsRes_datum>0) {
$nested_query_rsRes_reservationen = str_replace("123456789", $row_rsRes_datum['DATUMID'], $query_rsRes_reservationen);
mysql_select_db($database_infra_mysqldb1);
$rsRes_reservationen = mysql_query($nested_query_rsRes_reservationen, $infra_mysqldb1) or die(mysql_error());
$row_rsRes_reservationen = mysql_fetch_assoc($rsRes_reservationen);
$totalRows_rsRes_reservationen = mysql_num_rows($rsRes_reservationen);
$nested_sw = false;
if (isset($row_rsRes_reservationen) && is_array($row_rsRes_reservationen)) {
do {
?>
<?php
if (!isset($nested_sw) || $nested_sw == false) {
$nested_sw = true;
} else {
?>
,
<?php
}
?>
<?php echo $row_rsRes_reservationen['ResDatum']; ?>
<?php
} while ($row_rsRes_reservationen = mysql_fetch_assoc($rsRes_reservationen));
}
}
?></td>
</tr>
<?php } while ($row_rsRes_datum = mysql_fetch_assoc($rsRes_datum)); ?>
</table>
-----

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