function list_events() { // you can edit these first three values $dateformat = "M d"; // use any php date format string $daystoshow = 365; // the number of days in advance you want to show $maximumevents = 200; // the maximum number of events you want retrieved from the database global $db_events,$sfx; $num = 0; $today = time(); echo ""; for ($x =0; $x < $daystoshow; $x++) { if ($num < $maximumevents) { $id = date("Ymd",$today); $year = substr($id,0,4); $month = substr($id,4,2); $day = substr($id,6,2); $conn = db_connect(); $result = @mysql_query("select * from $db_events where year = '$year' and month = '$month' and day = '$day'"); if (mysql_num_rows($result) !=0) { while ($row = mysql_fetch_array($result)) { $id = "E" . $row['id']; $title = $row['title']; $timstamp = $row['t_stamp']; $title = stripslashes($title); $newdate = date($dateformat,$timstamp).":"; if ($newdate==$date) { $date = " "; } else { $date = date($dateformat,$timstamp).":"; } echo "".""; $num = $num + 1; } } $today = $today + 86400; } } echo "
$date $title
"; } // END ?> The Dent: Hereinmyhead.com's Piece By Piece Giveaway!
Click this logo to go to the Tori News Page

Hereinmyhead.com's Piece By Piece Giveaway!

Updated Fri, Jan 21, 2005 - 2:46am ET

 ToriNews
 Toriphiles
 Articles
 TV/Radio
 Tour Info
 Music
 RAINN
 Merchandise
 Sightings
 Opinion
 Miscellaneous
 Entry Page

Hereinmyhead.com is giving away 5 advance copies of the new book Tori Amos: Piece By Piece. Entries will be accepted until midnight on Tuesday, January 25, 2005. The random drawing for this event will be take place on Wednesday, January 26, 2004. You can find out more details about this exciting giveaway at Hereinmyhead.com!

The Dent will also be giving away copies of the new book soon, so you will have a second chance if you do not win at Hereinmyhead.com! Stay tuned...


More Details


Posted by: Mikewhy


Go Back

Return To ToriNews

Please give me feedback, comments, or suggestions about The Dent. Email me (Mikewhy) at mikewhy@iglou.com

Powered by pMachine