Hi
I need to run a query based on a php date variable.
if($aresult) is false when it should actually be true for the date I am sending
Thanks for the help!!
I need to run a query based on a php date variable.
Code:
$add2days=strtotime(date("Ymd",$MyToday). "+2 day"); echo".....date(add2days)=".date('Y-m-d',$add2days) $query2 = "SELECT `daydate` FROM publicholiday WHERE `daydate`=`date('Y-m-d',$add2days)`"; $aresult = $dbLink->query($query2); //$resultrow = $aresult->fetch_row(); //echo"sunday holiday row is".$resultrow[0]; if($aresult) {.... }
Thanks for the help!!
Comment