Help with Calendar creation

Hi guys/gals
just working my way through the php calendar generation
script in the adobe blog ref
http://www.adobe.com/devnet/dreamweaver/articles/php_blog3_03.html
but I get an unexpected } and , although I can see that there
are too many, I don't know if I should have another { or delete the
}... if that makes sense.
The code is
<table width="100%" border="1" cellspacing="0"
cellpadding="0">
<!--DWLayoutTable-->
<tr>
<td width="736"> </td>
</tr>
<tr>
<td height="16" valign="top"><?php function
build_calendar($month,$year,$day) {
$daysOfWeek = array('Su','Mo','Tu','We','Th','Fr','Sa');
$firstDayOfMonth = mktime (0,0,0,$month,1,$year);
$noDays = date('t',$firstDayOfMonth);
$dateComponents = getdate($firstDayOfMonth);
$dayOfWeek = $dateComponents['wday'];
$monthName = date('F',mktime(0,0,0,$month,1,$year));
return $calendar;}
if($month == 1) {
$mn=12;
$yn=$year-1;
else {
$mn=$month-1;
$yn=$year;
if($month == 12) {
$mn2=1;
$yn2=$year+1;
else {
$mn2=$month+1;
$yn2=$year;
$calendar = "<table>";
$calendar .= "<tr><td><a
href=day.php?m=$mn&y=$yn&d=$day><</a></td>";
$calendar .="<td colspan=5 align=center>$monthName,
$year</td>";
$calendar .="<td><a
href=day.php?m=$mn2&y=$yn2&d=$day>></a></td></tr>";
$calendar .="<tr>";
foreach($daysOfWeek as $day) { $calendar .=
"<td>$day</td>"; }
$calendar .= "</tr>";
$calendar .= "<tr>";
$currentDay = 1;
if ($dayOfWeek > 0) { $calendar .= "<td
colspan='$dayOfWeek'> </td>"; }
while ($currentDay <= $noDays) {
if ($dayOfWeek == 7) {
$dayOfWeek = 0;
$calendar .= "</tr><tr>";
$calendar .= "<td>$currentDay</td>";
$currentDay++;
$dayOfWeek++;
PROBLEM>>>>> }
if ($dayOfWeek != 7) {
$remainingDays = 7 - $dayOfWeek;
$calendar .= "<td colspan='$remainingDays'>
</td>";
$calendar .= "</table>";
echo build_calendar($month,$year,$day);
?></td>
</tr>
</table>
Has anyone else used this tutorial?

Select the font in the calendar and open Font Book and vailidate the font.
Font Book
Also, a further option is to use another font.

Similar Messages

  • New to Blackberry and need help with calendar

    Hi all,
    Just got my very first BB and could do with some help with my laptop and calendar (don't know if what I want is possible or available, so sorry it its not )
    I got my BB for my personel use and want to be able to sync it with a calendar on my laptop.  I don't have microsoft outlook, so I was wondering if anyone knew of a application or download I can get that will give me a calendar on my Laptop that I can sync with my BB.
    Many thanks
    Abi
    Solved!
    Go to Solution.

    Abi, welcome to the Forums.
    Google Calendar sync is a perfect option.
    http://www.google.com/mobile/blackberry/sync.html
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Need help with Calendar, nothing seems to be working!!!!!!!

    Ok, I have been everywhere and can't seem to figure this out. About 6 months ago my calendar stopped syncing with outlook. It sync's 4,219 entries but my phone has over 6,000 entries! For some reason it won't sync everything. I am using DM 4.5 because I was having problems with 4.7. My OS is 4.5.138. I have my options on DM to do a one way sync from device to Outlook, when it starts to sync it only shows 4219 entries are syncing.
    When I go under options and look at the CICAL there are none. My calendar entries are all saved under the default calendar but I don't know what that is. Can anyone help me figure out how to sync my phone to outlook. It's been frustrating the past 6 months!!!

    Do a search on your hard drive for *.pst Once your get the results view the properties of the one with the current date. Althought you might not have go over the 2gb limit (because Outlook would probably won't open!) I would still check if you're not near the limit. If so, do some cleaning to lower the size of your pst file.
    Also try to see if there's not a common pattern for items that fail to sync. (i.e.: missing email address, duplicate names, etc..)

  • Need some help with Calendar on my iPhone.

    Ok folks. Need some help and it may be basic, but I'm struggling with it.
    My wife and I both have iphone 5's. Both phones share one iCloud Id and one Apple ID.
    So, how do we share information across the apple calendar app?
    If I add something to my cal. It does not go to her. How can we get them to sync?
    Please help!!!
    Thank You!!

    Two things to check by putting the two iOS devices side-by-side.  First, check in Settings > iCloud to assure that you are indeed both using the same iCloud login.  Also, check that calendar is toggled on.
    Then, check Settings > "Mail, Contacts, and Calendars".  Scroll down to the calendars section and assure that your iCloud calendar is set as the "Default Calendar".
    Then, check that Settings > "Mail, Contacts, and Calendars" > "Fetch new data" is set to something suitable.  Note that "Push" will be best for iCloud.
    Lastly, open Calendars app, touch "Calendars" at the bottom, and assure that iCloud calendar is checked so it is visible.
    Then give you calendars a try again making sure that you are posting calendar events in the iCloud calendar.
    Hope this helps.

  • Day one of my new MacBook Pro & I desparately need help with calendar and email

    It's day one of my new relationship with a Mac, and I need help! I'd like to use microsoft exchange to sync my calendars to iCal &amp; my emails the way I currently do with my iPhone 4 and iPad 2. The problem is that all I get are error messages. They either say that communication with the server cannot be established or communication to ports 80 &amp; 440 cannot be established. One account I'd an ssl and the others are gmail. Please advise!

    anyone? please? i would appreciate any information.

  • Need help with calendar setup with Bluehost IMAP account

    I set up Mail on Mac Mini with Bluehost IMAP account using advanced settings.  Calendar will not work.  Says no secure server.  Advanced settings doesnt have as many fields to enter as Mac Mail.  Tried adding the correct port and SSL.  Have talked to Apple senior level and Bluehost. Any help here?
    OS is 10.9.3
    thx

    Do a search on your hard drive for *.pst Once your get the results view the properties of the one with the current date. Althought you might not have go over the 2gb limit (because Outlook would probably won't open!) I would still check if you're not near the limit. If so, do some cleaning to lower the size of your pst file.
    Also try to see if there's not a common pattern for items that fail to sync. (i.e.: missing email address, duplicate names, etc..)

  • Help with Calendar sync

    Hello
    If anyone can help I'd really appreciate it. I have a Curve 9300 and am using desktop manager 6.0.
    I believed what happened is as follows:
    I sync'ed my 9300 witn my Outlook 2003 before setting up any email accounts. This created a calendar on my phone called "Default".
    I then added 2 email accounts, my hotmail and my web-based work email, which created 2 new calendars on the phone. Thus 3 calendars.
    My phone recognizes my hotmail calendar as being the default (CICAL).
    I can't add to my default calendar from the phone. I can only add to it by adding to my Outlook calendar and then syncing with my phone.
    More importantly anything I add to my hotmail calendar on the phone DOES NOT sync with my Outlook. I've read several forum postings and can't seem to find exactly what to do to reslove this and be able to sync calendars. Any help is greatly appreciated. Thanks.

    Sorry. My carrier is Telus. My OS is v5.0.0.832.

  • Need very basic help with calendar - I am such a beginner!!!

    OK, I apologize in advance if this is a very silly question. But I'm new to all this stuff and really have no clue as to what I'm doing.
    I just got a brand new iPhone. It's great! I am using the calendar feature that came with the phone. But I can't figure out how to make it "talk" to my husband's calendar. He uses Microsoft Outlook. I've skimmed through lots of articles about Microsoft Exchange... but I don't have any Microsoft programs. I am a stay at home mother, and have been out of the technology loop for a while. It looks like I need a Microsoft Exchange account? I can't figure out how to get Microsoft Exchange, and if it's going to cost a fortune.
    I'm not even sure where to find which software is on my phone! There is no "about this phone" button that I can find. It's brand new, I think it was 3S and is 16GB if that helps.
    Can someone please save me from myself?
    Thanks!

    You could have the TC join your existing wireless network as a client, or you can can connect the Time Capsule's WAN port to the modem/router.
    In both cases the TC's "connection sharing" should be set to "Off (Bridge Mode)".
    If the TC "joins" the wireless network you can only back up over your wireless connection, so the second option is preferable.

  • Help with Calendar Invitation Alerts - Odd Situation

    Hi everyone, I'll make it short and with facts of what I have done.
    The Facts:
    My wife has an iPhone 4S (iOS 5.1) and has her Gmail Email and Calendar setup as an exchange account in the "Mail, Contacts, Calendars" settings.
    I have an iPhone 4 (iOS 5.1) and also have my Gmail Email and Calendar setup as an exchange account in the "Mail, Contacts, Calendars" settings.
    We both use our Gmail email as the email account associated with our Apple ID.
    We both have Calendar Alerts fully activated on Notifications Center (same exact selections) and have also marked "New Invitation Alerts" as "On" in the "Mail, Contacts, Calendars" settings.
    We both have selected "Push" on the "Fetch New Data" Setting.
    We both have iCloud accounts but do not use the email nor the calendar functions of iCloud (we want to use Gmail).
    If we create our own events in our own Calendars and set a reminders (for example "at the time of the event", we both get the alerts/notifications normally.
    To summarize, I have gone item by item on both iPhones to make sure we have the same selections on every setting.
    The problem:
    If my wife creates an event on her phone and invites me (rememer gmail to gmail accounts with same configuations in both iPhones), I do not get any type of notification.  The event will just show up on my iPhone Calendar greyed out until I accept it, but there is no type of notification (no popup notification and sound, no badge icon even though both are turned on in the settings of notification center an no pending invitations in the "Invitations" tab in the Calendar App). 
    However, If I create an event in my iPhone 4 and invite my wife, she will instantly get a pop up notification, with the sound alert she chose and her Calendar will pop open once she presses the pop up and the "Invitations" tab of the Calendar app will show up for her to accept the event.  Everything works fine with here iPhone!  The problem seems to be related to my iPhone since if it was a Gmail problem, my wife would also be having the problem.  Again, this problem is only when receiving invitations on my Calendar, because if I create my own event and set a reminder, it will function (alert) me as it should.
    I don't know what else to do!  Any ideas of how I can resolve this?
    Thanks!

    I recently upgraded to iOS 6 both mine and my wife 4S.
    We are in the same situation of Javier: bot with GMail (Google Apps on different domains), IMAP for Mail, Exchange for contacts and calendar.
    I am sure invitations worked fine with iOS 5, but now they stopped working with the iOS upgrade.
    Switching mail to Exchange solves the calendar problem, but Push is not working properly with new iOS...
    I was thinking to:
    - change calendar settings from Exchange to GMail, or
    - exclude Calendar from Exchange and try CalDAV account.
    Should it work?
    Ciao
    Paolo

  • Noob needs help with site creation -- interactive?

    I want to make a site where people can post and/or reply to other posts.
    I've used iWeb for a couple years so I'm good with "static" sites but how can I make one where people can post to the site themselves?
    For example, I write ::"what is your favorite rum when making a hurricane":: and a list of users/responses follows?
    Is that even possible?
    I'm using iWeb '09.
    Thanks,
    Jay

    Jay ~ Welcome to the discussions. You could link to a free forum you've set up here:
    http://www.lefora.com
    And to link to an external forum from iWeb's navigation bar:
    Link it to a blank internal page titled "Forum" (actually you can name the page whatever you want.) Then in that Forum page add an HTML Snippet with the following code:
    <script type="text/javascript">
    parent.window.location = "http://www.yourforumname.lefora.com"; // change this to your own URL
    </script>
    ...Once published, clicking on the Forum page in the navbar will immediately redirect to your external Forum page. (Thanks to Cyclosaurus for the code).
    Ning, the free "social networking" site, includes a forum:
    Add a rich single or multi-threaded discussion forum with categories, photos and attachments to your Ning Network. Limit forum topic creation to you or open it up to all of your members.
    http://about.ning.com/product.php

  • Help with dynamic creation of class object names

    Hi all
    Wonder if you can help. I have a class player.java. I want to be able to create objects from this class depending on a int counter variable.
    So, for example,
    int counter = 1;
    Player p+counter = new Player ("Sam","Smith");the counter increments by 1 each time the method this sits within is called. The syntax for Player name creation is incorrect. What I am looking to create is Player p1, Player p2, Player p3.... depending on value of i.
    Basically I think this is just a question of syntax, but I can't quite get there.
    Please help if you can.
    Thanks.
    Sam

    here is the method:
    //add member
      public void addMember() {
        String output,firstName,secondName,address1,address2,phoneNumberAsString;
        long phoneNumber;
        boolean isMember=true;
        this.memberCounter++;
        Player temp;
        //create HashMap
        HashMap memberList = new HashMap();
        output="Squash Court Booking System \n";
        output=output+"Enter Details \n\n";
        firstName=askUser("Enter First Name: ");
        secondName=askUser("Enter Second Name: ");
        address1=askUser("Enter Street Name and Number: ");
        address2=askUser("Enter Town: ");
        phoneNumberAsString=askUser("Enter Phone Number: ");
        phoneNumber=Long.parseLong(phoneNumberAsString);
        Player p = new Player(firstName,secondName,address1,address2,phoneNumber,isMember);
        //place member into HashMap
        memberList.put(new Integer(memberCounter),p);
        //JOptionPane.showMessageDialog(null,"Membercounter="+memberCounter,"Test",JOptionPane.INFORMATION_MESSAGE);
        //create iterator
        Iterator members = memberList.values().iterator();
        //create output
        output="";
        while(members.hasNext()) {
          temp = (Player)members.next();
          output=output + temp.getFirstName() + " ";
          output=output + temp.getSecondName() + "\n";
          output=output + temp.getAddress1() + "\n";
          output=output + temp.getAddress2() + "\n";
          output= output + temp.getPhoneNumber() + "\n";
          output= output + temp.getIsMember();
        //display message
        JOptionPane.showMessageDialog(null,output,"Member Listings",JOptionPane.INFORMATION_MESSAGE);
      }//end addMemberOn running this, no matter how many details are input, the HashMap only gives me the first one back....
    Any ideas?
    Sam

  • Need a little help with JAR creation

    I've created a JAVA program with the Forte IDE and now I want to make it executable without the IDE. I read on this forum that all I had to do was create a JAR file, so I tried but I get an error (see below). Could someone point out my error please.
    Directory Tree:
    vio082\vio\app\
    DOS command to create executable JAR:
    "java -jar cmf trackerManifest.txt trackerTest.jar trackerTest.Class"
    ERROR I RECEIVED:
    "Exception in thread "main" java.util.zip.ZipException: The system cannot find the file specified
         at java.util.zip.ZipFile.open<Native Method>
         at java.util.zip.ZipFile.<init><Unknown Source>
         at java.util.zip.ZipFile.<init><Unknown Source>
         at java.util.zip.ZipFile.<init><Unknown Source>"
    This was my file trackerManifest.txt:
    Main Class: trackerTest
    [cr]
    This is the begining of my file trackerTest.Class:
    package vio.app;
    import javax.comm.*;
    import vio.tracker.*;
    import java.net.*;
    import java.io.*;
    public class trackerTest {
         public static void main (String argv[]) {

    Thanks for the help so far. My first problem was that the directory with the "jar" command was not in my path (now that fixed). My application still won't execute and I think it has to do with the following:
    My application uses the serial port to communicate with a device and uses a socket server to communicate with a C++ program. The following JAVA utilities are imported to make my application work:
    javax.comm.
    java.net.
    ijava.io.
    If I use the command:
    "jar cvfm trackerTest.jar trackerManifest.txt trackerTest.Class"
    will the appropriate files from javax.comm, java.net and ijava.io also be incorporated into the jar file? If not, how are they made available when I distribute my jar to other users?
    Second question:
    Should I be using:
    "jar cvfm trackerTest.jar trackerManifest.txt vio082/*.*"
    to capture all the other classes required by my package that are in other directories above and below the trackerTest.class directory?
    Any help is greatly appreciated.
    JAM

  • Need help with Catalog creation

    I have a catalog of 500 item I would like to sell over the
    web . This catalog is in a PDF format with graphics and text . How
    can I get into contribute and add the paypal cart buttons. I am
    trying to eliminate the need of recreating the catalog when it is
    all already created and shoud be able to convert for use in
    contribute. any help would be appreciated . If contribute is not
    the product for me let me know that as well. The catalog was
    created in illustrator and saved as a PDF file (if this
    helps)

    If you have the source design in Illustrator - you might want
    to use Dreamweaver or GoLive instead, so that you can insert your
    graphics and text elements using layers and hotslices. Contribute
    can then be used to manage your site content. For a simple site
    design, you can incorporate existing sample templates in
    Contribute, and then add the paypal shopping object to them. Since
    you have the graphical mockup in Illustrator this should be two
    ways to approach your catalog to web design.

  • Help with Order creation

    I have a Workflow....
    There I have component Siebel Operation
    (BC is Order Entry - Orders
    Operation is Insert)
    It's work successfully BUT I need to create Order and when I'm creating
    fill some fields with my data...Now it's creating without filling fields
    How to do this using input arguments of siebel operation???

    If "Argument Fields for an Input Argument"
    http://download.oracle.com/docs/cd/B40099_02/books/BPFWorkflow/BPFWorkflow_Reference26.html#wp1168244
    doesn't help, then you need to tell us more exactly what you do and what you can't get to work.
    Axel

  • Need help with Calendar

    Hi There,
    I have a BB 8310 from AT &T (complete morons) who had me update my BB software to 4.5 today and also update the desktop manager to 4.6.  Prior to that no one said anything about doing a Backup & Restore so once all was done after hours of time wasted (I hate the new look).  Anyways, I realized that all my contacts were in my Yahoo email so once I synced I was able to retrieve them.  However, my calendar is saved in MS Outlook which I haven't used for email in over 3 years.  My outlook is connected to an old email address which has been cancelled years ago.  How do I get all my calendar to sync from outlook to my BB?  Please help as it will save me lots of time.
    Also, why is my BB Messenger stuck under a folder called "Applications" and how do I move all those out of the folder and onto my home screen?
    Finally, how do I get a home screen where I can see upcoming appointments and messages (as I used to before this dumb update)?
    Thanks,
    Rani
    Solved!
    Go to Solution.

    ranipabla wrote:
    Hi There,
    Also, why is my BB Messenger stuck under a folder called "Applications" and how do I move all those out of the folder and onto my home screen?
    Finally, how do I get a home screen where I can see upcoming appointments and messages (as I used to before this dumb update)?
    Thanks,
    Rani
    For moving application to the home screen select/highlight desired icon -> click Menu -> Move to Folder -> Home 
    To get to see upcoming appiontments you need to have a theme. In your previous OS different theme called 'Today' was doing the thing for you. You can have a google search for having that theme.
    tanzim                                                                                  
    If your query is resolved then please click on “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit

Maybe you are looking for

  • Single directory Server for Messaging and Portal

    We are trying to unify our directory services. At present, there two directory servers, one for iPlanet messaging 5.2 and another for Portal server 6.0. Messaging's Directory server is v5.1 and Portal's Directory server is v5.2. Their BaseDN is same.

  • Open in new tab option missing

    i'm not entirely sure what caused this change, and i can still access new tabs with the cmd- and cmd-shift- clicks, but for some reason the option for "open link in new tab" no longer appears when i "right click". i can't think of any major changes i

  • How to use request.setAttribute in javascript function.

    Here is my scenario. I am storing all open windows handles in the array( javascript ). I want to send this array to the servlet for which I need to do request.setAttribute("jsArray", windowArray); I am getting all kinds of errors while writing above

  • Services sequence order for Hyperion 11.1.1.3

    Hi All, I installed Hyperion 11.1.1.3(Foundation, Planning, HFM, HPCM) suite in HP-Xeon Server. Can anyone tell me the starting and stopping sequence order for Hyperion 11.1.1.3 The following services got installed : Hyperion Administration Services

  • How do I delete just the old history (2013) and leave the rest

    I need to delete all my ancient history, but not the recent. Can't find any way to select by date. Win 7 Home Premium Ninian