i am using the mysql, the error i think is on the mysql_query because the return false on if condition, this is the code and i cant find the error, the "time" is data-time information sscript
date_default_timezone_set("America/New_York");
$now = date("Y-m-d H:i:s") ;
$strsqld = "SELECT 'time' FROM 'tssa_banner_central' WHERE 'time' > '$now'";
if($result=mysql_query($db,$strsqld)){echo("ahre");};
if (mysql_num_rows($result) > 0) {
// output data of each row
while($row = mysql_fetch_assoc($result)) {
echo ($row["time"]);
};
}
other script (the require is included)
function connect() {
$db = mysql_connect( DB_HOST, DB_USER, DB_PASS );
mysql_query("SET NAMES utf8");
if (!$db || !mysql_select_db(DB_NAME, $db)) {
die('***');
}
return $db;
}