Jump to content


This topic is now archived and is closed to further replies.


How to use Add Parameter function in DW

Recommended Posts



I don't get it how to use the Add Parameter function when creating a

RecordSet (in advance mode) and you can add "variables".


My situation is like this:


I have a page which has some PHP code that sets the variable $ttoday to

the current weekday (ie Monday, Tuesday etc.).


I have done it this way:


[!--PHP-Head--][div class=\'phptop\']PHP[/div][div class=\'phpmain\'][!--PHP-EHead--]

[span style=\"color:#0000BB\"]<?php $ttoday [/span][span style=\"color:#007700\"]= [/span][span style=\"color:#0000BB\"]date[/span][span style=\"color:#007700\"]([/span][span style=\"color:#DD0000\"]\'l\'[/span][span style=\"color:#007700\"]); [/span][span style=\"color:#0000BB\"]?>




At the same time I have a RecordSet that should search in a MySQL Database after all records that have the matching weekday as I put into the variable $ttoday.


Now, how do I do this?

Do I do it in the RecordSet dialog in advance mode using the Variables or on a even simpler way?


Thanx 4 any kind of help!




Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.