=TO_DAYS(NOW()) ) OR (TO_DAYS(".$myModule_Table."_StartDate)<=TO_DAYS(NOW()) AND ". $myModule_Table."_ExpireDate='0000-00-00 00:00:00' ) OR (TO_DAYS(".$myModule_Table."_StartDate)<=TO_DAYS(NOW()) AND TO_DAYS(".$myModule_Table."_ExpireDate)>=TO_DAYS(NOW()) )) AND ".$myModule_Table."_ModuleKey='".$SystemModuleKey."' "; $sql_product.=" AND ".$myModule_Table."_Status='Home'"; $sql_product.=" ORDER BY ".$myModule_Table."_Order DESC LIMIT 0,4"; $query_product=mysql_query($sql_product); $count_product=mysql_num_rows($query_product); if($count_product>=1){ while($row_product=mysql_fetch_array($query_product)){ $txt_product_id=$row_product[0]; $txt_product_subject=rechangeQuot($row_product[1]); $txt_product_pic=$myModule_Path_GalleryThumbnail_Fornt."/".$row_product[2]; $txt_product_gid=$row_product[4]; $txt_product_subgid=$row_product[5]; ?>