Jump to content


How to use Add Parameter function in DW

  • Please log in to reply
No replies to this topic

#1 AndieB

  • Members
  • PipPipPip
  • Advanced Member
  • 77 posts
  • LocationSweden
  • Age:37

Posted 12 April 2005 - 04:50 PM


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!


" Start by looking in the mirror before pointing the finger outwards... "
" Nothing can be, until it has passed your mind... "

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users