1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. To combat forum spam, new accounts will need to make at least one (valid) post.
    Otherwise, we will periodically purge all users without posts or that haven't confirmed their account.

How to determine month being printed

Discussion in 'Mambo/Joomla Integration' started by hbcrosby, Nov 24, 2008.

Thread Status:
Not open for further replies.
  1. hbcrosby

    hbcrosby New Member

    I have been successful in installing EPC in Joomla 1.5 including the "printable.php" code. My question is this....when using the "printable.php" code, how can I pull the month name (that is being printed) to place in a text line on top of the list to be printed? Is there a variable I can place in the text line?

    I.e. - "New Hope's Event List for XXXXX"

    Thank you!

  2. ve9gra

    ve9gra Support Team

    You can use simple PHP. If the variable $mo, or $_REQUEST['mo'] is not defined, then you're showing the current month.

    Use date("F", mktime(0,0,0, $mo)); to get the month name.
Thread Status:
Not open for further replies.

Share This Page