Treehouse: Grow your CSS skills. Land your dream job.

PHP Coding issue

  • Ren
    # November 12, 2012 at 8:06 pm


    I recently used Perch to create a site and have had numerous problems with the extra applications like gallery, calendar and events. I thought I had sorted everything out but now I have noticed that for some reason the events listing is being divided up into past and future events, with all the past events being displayed correctly and all the future events being displayed in the background. Can anyone help me figure out how to display all the events in the centeral scroll panel.

    Here is the code I used:

    < ?php include('perch/runtime.php');?>

    < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

    < ?php

    $opts = array(



    ‘category’=>array(‘gigs’, ‘Events’),


    ‘sort-order’=> ASC,







    # November 13, 2012 at 5:28 am

    Can you post your event-day.html template as well.

    # November 14, 2012 at 5:48 pm

    Hi Andy,

    I have tried several times to post the event-day.html template code but for some reason when I hit post the text posted is not what I have pasted into the text box. I can’t work out what is going on!!


    # November 14, 2012 at 5:53 pm

  • “>…

  • “>

    ” alt=” ” />

# November 14, 2012 at 5:53 pm

that worked!

# November 14, 2012 at 6:06 pm

My document is not valid. What I don’t understand is why is there so many closing tag errors? What does this mean? Why aren’t they closed properly?

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.