alert('ไม่สามารถแสดงข้อมูลนายแบบ/นางแบบหน้าใหม่ดังกล่าว');history.back();"; }else{ echo ""; exit; } $totalCol = 5; $pagename = 'globalmagazinepreview'; if(isset($_SESSION['loginusername'])){ $globalmagflag = webpage_detail_func("flag_global_show_member"); }else{ $globalmagflag = webpage_detail_func("flag_global_show"); } $sql = "select globalid, globalname, globalcountry from globalmagazine where globalflag > ".webpage_detail_func("flag_global_hide")." and globalflag <= ".$globalmagflag." and globalid = ".$globalid; $result = select_data_func($sql); $totalRow = mysql_num_rows($result); if($totalRow>0){ $row = mysql_fetch_array($result); $globalid = $row['globalid']; $globalmagname = stripslashes($row['globalname']); $globalmagcountry = stripslashes($row['globalcountry']); }else{ echo ""; exit; } ?>