Jump to content

akisok2

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Posts posted by akisok2

  1. Hey there. I am using a really cool PHP script written by Erik Kittel (VERY SIMPLE EVENTS LIST VERSION 1.01) and wanted to see if someone could help me with a modification that I'd like to make. I'd like to somehow modifiy this code so that after an event date has passed, the script will echo something like "no new events at this time" or something else. Right now the script just displays the last event until you enter new events. Thanks!

    <?php
    include 'config.php';
    include 'library/opendb.php';
    include 'library/timeFunctions.php';
    include 'library/summaryDisplayFunctions.php';

    $query = "SELECT * FROM events ORDER BY date, time";
    $result = mysql_query($query);

    while($row = mysql_fetch_assoc($result))
    {
    if ($row['date'] >= date('Y-m-d'))
    {
    displayEvents($row);
    }
    }


    ?>
×
×
  • 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.