Seraph76 Posted December 17, 2006 Share Posted December 17, 2006 Can someone help me with this, I want to add a graphical countdown ticker page to my website. Like the pregnancy and birthday countdown tickers. example on these pageshttp://image.lafemmebonita.com/cgi-bin/pregnancy-tickers.cgihttp://lilypie.com/www.surebaby.com/tickers.phphttp://pregnancyandbaby.com/pregnancy/baby/Make-a-free-pregnancy-ticker-4486.htmI just do not know how to set up the database....I pretty much understand the rest of how to write this script... Link to comment https://forums.phpfreaks.com/topic/30933-ticker/ Share on other sites More sharing options...
trq Posted December 17, 2006 Share Posted December 17, 2006 What part exactly dont you understand?You would simply put the due date into the database, then use the [url=http://php.net/date]date[/url] function to count down. Link to comment https://forums.phpfreaks.com/topic/30933-ticker/#findComment-142716 Share on other sites More sharing options...
Seraph76 Posted December 17, 2006 Author Share Posted December 17, 2006 I am not advanced at all with php and msql. I am teaching myself by doing it.I meshed some things and put in one table in a database.Can you tell me if I am on the right track...at all?I am not sure how to send it to you thought because the upload function on this board will not work. Link to comment https://forums.phpfreaks.com/topic/30933-ticker/#findComment-142779 Share on other sites More sharing options...
heckenschutze Posted December 17, 2006 Share Posted December 17, 2006 something like this, (using unix timestamps)[code]<?php$event_ts = 159893285;echo "There are " . ($event_ts - time()) / pow(60, 4) . " days until the event";?>[/code] Link to comment https://forums.phpfreaks.com/topic/30933-ticker/#findComment-142784 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.