Jump to content

Recommended Posts

I have a php script that shows a mini calendar on my site [url=http://www.LBPP.net/geeklog]http://www.LBPP.net/geeklog[/url], right now the days are abbreviated to 3 chars ie "Sun" because of this it is making the calendar too wide and is being cut off. I need to truncate the output of this script to just one char so its like "S" "M" "T" "W" "T" "F" "S". This is what i have:

[code] 
// Main Calendar
$BlockDisplay .= "</td></tr><tr>";

    for ($i = 0; $i < 7; $i++)
    {
        $BlockDisplay .= "<td align='center' valign='top' width='14%'
class='mycalTitle'><font size='1'><b>"
            . ucfirst(strftime("%a", $firstdaytodisplay + ($i *
_MYCAL_DAY_)))
            . "</b></font></td>";
    }
[/code]

I did not write this code and am only trying to modify it, but my PHP skills are limited. Any insight in the direction i need to take would be much appreciated.
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.