I have a dropdown which I want to populate with all the months from Jan 2010 until the month before the current one (eg. last month). What’s the best way of doing this? I’m not going to pull the options in from a table, I literally just want every month from then until almost now.
OK, I’ve gone back to the old PHP days and have done it that way. The last thing I need is to know how I use a variable from within PHP. Any steers?
To use Wappler, just check this video out from DMXzone …
Thanks @revjrblack but that’s not what I was asking. I have written the code to generate all the options in a dropdown but need to get a value from a variable used by Wappler (I have the signup date stored in the database so want the dropdown to show all months running from their signup date to last month). As I’ve done this in PHP, how do I access the signupdate variable?
To clarify, this is the variable I want to access:
{{connDetails.data.details[0].uSignupDateTime}}
but I’m coding in PHP so would want this in something like this:
<?php echo {{connChildDetails.data.childdetails[0].uSignupDateTime}}; ?>
But that obviously doesn’t work.
I’ve shown a simple echo statement purely to illustrate it. I wouldn’t use this method if I just wanted to output the value! I just want to know how I can get the value of the variable from within PHP.
Can anyone help me access a data binding from within PHP code?