query($spt) or die("ERROR $spt"); $rpt=mysqli_fetch_assoc($rept); ?> ลงประกาศฟรี จังหวัด |
query($sai2) or die("Error $sai2"); while($rai2=mysqli_fetch_assoc($reai2)){ ?>

ประกาศแนะนำ

query($spre) or die("ERROR $spre"); while($rpre = mysqli_fetch_assoc($repre)){ $urlpre=rewrite($rpre['post_title']); $urlprv=rewrite($rpre['PROVINCE_NAME']); //post img $spic="SELECT picshow FROM `classified_post_img` WHERE post_id='$rpre[id]'"; $repic=$mysqli->query($spic) or die("ERROR $spic"); $rpic=mysqli_fetch_assoc($repic); //category $scate="SELECT id, cate_name FROM `category` WHERE id='$rpre[cate_id]'"; $recate=$mysqli->query($scate) or die("ERROR $scate"); $rcate=mysqli_fetch_assoc($recate); $postcate=rewrite($rcate['cate_name']); // sub category $ssub="SELECT id, sub_cate_name FROM `sub_category` WHERE id='$rpre[sub_cate_id]'"; $resub=$mysqli->query($ssub) or die("ERROR $ssub"); $rsub=mysqli_fetch_assoc($resub); $postscate=rewrite($rsub['sub_cate_name']); ?>