TV guide written in PHP - problems with datetime() and database functions
问题 I'm creating a TV Guide which lists programmes coming up (and on some listings, previous airings from the past), with all data stored in a database. It runs in PHP, my version being 5.28 (upgrading to 5.30 or 6 soon). Below is a script which works (note the field airdate is stored as DATETIME in the database): [Disclaimer: The script isn't mine, but a generic one I downloaded, and modified to suit my own needs.] <? //connect to mysql //change user and password to your mySQL name and password