Jump to content

Robert_Craig

Members
  • Posts

    19
  • Joined

  • Last visited

Everything posted by Robert_Craig

  1. Thank you Barand for the quick reply and easy explanation.
  2. I am trying to create a math equation inside a variable but I am struggling to achieve the desired result. On one php page I have this: $x = "date('Y')"; $y = "1989"; $description = "In this classic lecture which was delivered over $x - $y years ago, etc etc....."; On my main page I have linked to the above and also $description but the result I am getting is: In this classic lecture which was delivered over date('Y') - 1989 years ago, I want to create a variable so I don't need to go back every year and change the description. Is this possible? Robert
×
×
  • 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.