= NOW() order by date"; $result2 = execute_query($youth_events_query); ?> Dynamic Events page - ATBS.net
Banner graphic header

Dynamic Events

What does "Dynamic Events" mean? This is a page, supported by a data entry page, that allows you to update the contents of your own web site. The information is stored in a database and displayed on your web page. Rather than pay someone to make minor changes to information displayed on your web site, you maintain it yourself through an easy to use administration page with simple shopping cart like design. So what it really means is lower web marketing costs.

This page demonstrates the dynamic control of content. If there are events in the database, a table showing those events 'magically' appears below. Conversely, if there are no events in the database, no trace of the table exists. As the date of the event passes, it is automatically removed from the list.

for a full demonstration!

\n"; echo "\n"; echo " Events\n"; echo "\n"; echo "\n"; echo " Date\n"; echo " Time\n"; echo " Event\n"; echo " Where\n"; echo "\n"; $i = 0; $rowCount = 0; while($i < $num) { $date = mysql_result($result2,$i,1); $time = mysql_result($result2,$i,2); $event = mysql_result($result2,$i,3); $location = mysql_result($result2,$i,4); $bgcolor = ($i % 2) ? "" : "class='colored'"; echo "\n"; echo " \n"; echo date("F j, Y", strtotime($date)); echo " \n"; echo " \n"; echo date("g:i A", strtotime($time)); echo " \n"; echo " \n"; echo $event; echo " \n"; echo " \n"; if ($location == ""){ echo " "; }else{ echo $location; } echo " \n"; echo "\n"; $rowCount++; $i++;}//while echo "\n"; } if($rowCount < 6){ $top = 500; }else{ $top = (50 * $rowCount) + 200; } ?>