AndieB Posted April 12, 2005 Share Posted April 12, 2005 Hello, 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\"]?> [/span] [/span][!--PHP-Foot--][/div][!--PHP-EFoot--] 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! Andreas Link to comment https://forums.phpfreaks.com/topic/2250-how-to-use-add-parameter-function-in-dw/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.