نقل قول نوشته اصلی توسط Rezash نمایش پست ها
حدس ميزنم مشكل از charset باشه
اول اسكريپت اين خط رو اضافه كنيد :
کد PHP:
<?php
error_reporting
("-1");
?>
بعد ببينيد آيا خطايي دريافت ميكنيد يا خير
کد PHP:
<?php
//initialize the session
if (!isset($_SESSION)) {
  
session_start();
}

// ** Logout the current user. **
error_reporting("-1");
$logoutAction $_SERVER['PHP_SELF']."?doLogout=true";
if ((isset(
$_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){
  
$logoutAction .="&"htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset(
$_GET['doLogout'])) &&($_GET['doLogout']=="true")){
  
//to fully log out a visitor we need to clear the session varialbles
  
$_SESSION['MM_Username'] = NULL;
  
$_SESSION['MM_UserGroup'] = NULL;
  
$_SESSION['PrevUrl'] = NULL;
  unset(
$_SESSION['MM_Username']);
  unset(
$_SESSION['MM_UserGroup']);
  unset(
$_SESSION['PrevUrl']);
    
  
$logoutGoTo "index.php";
  if (
$logoutGoTo) {
    
header("Location: $logoutGoTo");
    exit;
  }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
ul{
float:right;
width:100%;
margin:10;
}
li{
display:inline
}
a.menu
{
float:right;
width:65pt;
height:35pt;
text-decoration:none;
background-color:#6c6d68;
padding:2pt 2pt;
border-right:1px solidwhite;
}
a.menu:hover{
    color:#000000;
    font:bold;
    background-color:#0097FD;
    text-align: center;
}

body,td,th {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}
body {
    background-color: #777777;
}
.style1 {font-family: Tahoma, "Times New Roman"}
.style2 {
    font-family: Tahoma, "Times New Roman";
    color: #FFFFFF;
    font-weight: bold;
}
-->
</style></head>

<body>
<DIV style="position:absolute; left:391PX; top:6px; width:951px; height: 895px; background:#000000" align="center"  >
<div style="position:absolute; left:7px; top:10px; height: 358px; width: 951px;"><img src="img/image_4.png" width="277" height="356" /><img src="img/Wallpaper (4).jpg" width="647" height="325" /></div>
<div style="position:absolute; left:269px; top:310px; width: 611px; height: 60px;">
<ul>
<li>
  <div align="center"><a href="index.php" class="menu">صفحه اصلی</a></div>
</li>
<li>
  <div align="center"><a class="menu">ثبت نام</a></div>
</li>
<li>
  <div align="center"><a class="menu">گالری</a></div>
</li>
<li></li>
<li></li>
<li>
  <div align="center"><a href="news.php" class="menu">اخبار</a></div>
</li>
<li>
  <div align="center"><a href="about.php" class="menu">درباره ما</a></div>
</li>
<li>
  <div align="center"><a href="contact.php" class="menu">تماس باما</a></div>
</li>
</ul>
</div>
<div style="position:absolute; left:11px; top:388px; width: 542px; height: 445px; background-color: #777777; layer-background-color: #6C6D68; border: 1px none #000000;">
  <table width="200" border="1" align="center">
    <tr>
      <td colspan="3"><div align="center" class="style2">پنل مدیریت </div></td>
      </tr>
    <tr>
      <td><p align="center" class="style1"><a href="news_add.php"><img src="img/news_add.png" width="48" height="48" /></a></p>
        <p align="center" class="style1"><a href="news_add.php">اخبار</a></p></td>
      <td><p align="center" class="style1"><a href="cat_add.php"><img src="img/package_add.png" width="48" height="48" /></a></p>
        <p align="center" class="style1"><a href="cat_add.php">موضوعات</a></p>
        </td>
      <td><p align="center" class="style1"><a href="user_add.php"><img src="img/user1_add.png" width="48" height="48" /></a></p>
        <p align="center" class="style1"><a href="user_add.php">کاربران</a></p></td>
      </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><p align="center"><span class="style1"><a href="link_add.php"><img src="img/pawn_add.png" width="48" height="48" /></a></span></p>
        <p align="center" class="style1"><a href="link_add.php">لینکها</a></p></td>
      </tr>
    <tr>
      <td><div align="center"><a href="<?php echo $logoutAction ?>">خروج</a></div></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      </tr>
  </table>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
</div>
<div style="position:absolute; left:565px; top:465px; width: 359px; height: 363px;"><img src="img/strubery.jpg" width="362" height="353" /></div>
</DIV>
</body>
</html>



ای کد صفحه ادمین منه که قبلا گفته بودم خروج رو که میزنم درست کار میکنه و به صفحه ای که میخوام میره ولی وقتی آدرس صفحه مدیریت رو دستی وارد میکنم بازم وارد صفحه ادمین میشه

کدی که شما در بالا گفته بودید رو وارد کردم اگر میشه نگاه کنید ببینید درست وارد کردم یا نه چون هنوز هم همون مشکل رو دارم و حل نشده

اگر اشتباه لطفا ایرادش رو بگید
ممنون از لطفتون

---------- Post added at 04:55 PM ---------- Previous post was at 04:21 PM ----------

دوستان یک داینامیک تیبل ساختم که خبر رو درج کنه توی صفحه اصلی که با این پیغام مواجه شدم
MM_ERROR: MySQL Error#: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'fulltext FROM news' at line 1

مشکل از کجاست؟؟؟مرسی