$sads2="SELECT * FROM `ads_a2` ORDER BY id ASC";
$reads2=mysql_query($sads2) or die("Error $sads2");
while($rads2=mysql_fetch_assoc($reads2)){
?>
} ?>
$sintro="SELECT detail FROM `news` WHERE id='1'";
$reintro=mysql_query($sintro) or die("Error $sintro");
$rintro=mysql_fetch_assoc($reintro);
echo stripslashes($rintro['detail']);
?>
$sct="SELECT id, name FROM `category` ORDER BY id ASC";
$rect=mysql_query($sct) or die("ERROR $sct");
while($rct=mysql_fetch_assoc($rect)){
?>
$spost="SELECT id, title, img, view FROM `post` WHERE cate_id='$rct[id]' ORDER BY id DESC LIMIT 0,6 ";
$repost=mysql_query($spost) or die("ERROR $spost");
while($rpost=mysql_fetch_assoc($repost)){
$urlpost=rewrite($rpost['title']);
?>
} ?>
} ?>