'". $date_now . "' and open_date < '". $date_now . "' and valid = 1 and code='" . $code ."' "; $rtn = pg_exec($con,$query); $cnt = pg_numrows($rtn); $content_line =""; $top_main_line =""; $cont_hd_line =""; $profile_line =""; $cont_book_line =""; $cont_shopping_line =""; $tgl1_line =""; $tgl2_line =""; $page_line =""; $afi_flg02=0; $afi_flg03=0; $afi_flg04=0; $afi_flg05=0; if($cnt>0){ $id = pg_res