Jump to content

Recommended Posts

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.