beginner's question...

    Date: 01/16/07 (PHP Community)    Keywords: php, mysql, sql

    Okay, I'm new to php and am trying to set up a php/mysql calendar. I've got it all up and running but now I've got to tweek it based on my audience, so instead of it listing months and dates in English it needs to show them in both English AND Spanish, so I'm looking for some (hopefully) simple code help.

    Here's a pic of part of my current code:


    It's showing everything in Spanish perfectly, but I can't get it to show both. Basically what I want it to do is:
    if current month is 01 then current month is Enero - January

    ...but any time I add "- January" or just a space and then January my code errors out or just shows a 0. Is there anything special I need to do for it to show Enero - January or Enero January?

    I'm sure it's something simple that I've overlooked or forgotten.

    Thanks in advance!!

    Source: http://community.livejournal.com/php/530196.html

« UK webhosting recs ? || login help »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home