数据库中的时间倒计时[关闭]

                <div class="grid--cell fl1 lh-lg">
                    <div class="grid--cell fl1 lh-lg">
                        As it currently stands, this question is not a good fit for our Q&amp;A format. We expect answers to be supported by facts, references,   or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question   can be improved and possibly reopened, <a href="/help/reopen-questions">visit the help center</a> for guidance.

                    </div>
                </div>
            </div>
            <div class="grid--cell mb0 mt8">Closed <span title="2013-02-28 02:40:42Z" class="relativetime">7 years ago</span>.</div>
        </div>
    </aside>

I'm doing a simple auctioning site for a school project and I want to display a countdown for how long the auction will be active, starting from when its made and counting down a week or so (not set yet). I was thinking of when creating the auction, info is added into a database (what object, price, name, and time remaining). I would add what date and time the object is created and exactly 7 days after its no longer active. If I have time and date in my mySQL database, how would I display with php (or maybe AJAX? Never used it) the time remaining?

Any input is helpful as I'm completely stumped.

</div>

When you browse/display the auction just fetch the expiration date/time and then use JavaScript to countdown -- you do not need to call the database for it.

check this out: http://www.hashemian.com/tools/javascript-countdown.htm