Grow your CSS skills. Land your dream job.

PHP Coding issue

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

    Hi,

    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.

    http://www.tavcafe.com/events.php

    Here is the code I used:

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

    < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    < ?php

    $opts = array(

    ‘filter’=>’eventDateTime’,

    ‘match’=>’eqbetween’,

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

    ‘sort’=>eventDateTime,

    ‘sort-order’=> ASC,

    ‘display’=>date,

    ‘value’=>$_GET,

    ‘template’=>’events/listing/event-day.html’,

    );

    perch_events_custom($opts);

    ?>

    # November 13, 2012 at 5:28 am

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

    Ren
    # 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!!

    Ren

    Ren
    # November 14, 2012 at 5:53 pm

  • “>…

  • “>
    “>
    “>

    ” alt=” ” />

Ren
# November 14, 2012 at 5:53 pm

that worked!

Ren
# 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?

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.tavcafe.com%2Fevents.php&charset=%28detect+automatically%29&doctype=Inline&group=0

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".