alert('ไม่สามารถแสดงข้อมูลดูดวงดังกล่าว');history.back();"; }else{ echo ""; exit; } $pagename = 'horoscopepreview'; if(isset($_SESSION['loginusername'])){ $horoscopeflag = webpage_detail_func("flag_horoscope_show_member"); }else{ $horoscopeflag = webpage_detail_func("flag_horoscope_show"); } $sql = "select horoid, horotext from horoscope where horoflag > ".webpage_detail_func("flag_horoscope_hide")." and horoflag <= ".$horoscopeflag." and horoid = ".$horoscopeid; $result = select_data_func($sql); $totalRow = mysql_num_rows($result); if($totalRow>0){ $row = mysql_fetch_array($result); $horoscopeid = $row['horoid']; $horoscopetext = stripslashes($row['horotext']); }else{ echo ""; exit; } ?>