גבר, לא יודע למה אבל זה פשוט לא עובד לי..
הנה כל הקוד:
PHP קוד:
$id = $_GET["id"];
$sql = mysql_query("SELECT * FROM guildes WHERE id='$id'");
while(@($row=mysql_fetch_array($sql))) {
$id = $row["id"];
$author = $row["author"];
$name = $row["name"];
$content = $row["content"];
preg_match_all("#\[mycode\](.+?)\[/mycode\]#is",$content,$matchs,PREG_SET_ORDER);
for($i=0;$i<=count($matchs);$i++)
{
$content=preg_replace("#\[mycode\](.+?)\[/mycode\]#is","<div class=\"code\" style=\"margin:0px; padding:6px; border:1px inset; width:450px; overflow:auto\"><code style=\"white-space:nowrap\"><div dir=\"ltr\" style=\"text-align:left;\"><code><font color=\"#000000\">".highlight_string($matchs[$i][1])."</div></code></code></div>",$content,1);
}
$description = $row["description"];
$time = $row["time"];
}
echo "
<div class=\"mydiv\">
<div class=\"title\">$name</div>
<div class=\"row\">
<a href=\"index.php\">דף הבית</a> -> <a href=\"index.php?act=guildes\">מדריכים</a> -> <b>$name</b>
<br><br>
<div align=\"center\">
<center>
<table cellpadding=\"0\" cellspacing=\"0\" width=\"95%\">
<tr>
<td width=\"100%\" class=\"row1\">נכתב על ידי: $author בתאריך: $time<br></td>
</tr>
<tr>
<td width=\"100%\">
$content
</td>
</tr>
</table>
</center>
</div>
<br><br><hr>";
comments(); //// פונקציה שלי.. לא להתייחס
echo "
<br><br><br>
<center><a href=\"javascript:history.go(-1)\">חזור דף<a></center>
</div></div>";
אם מישהו מבין מה הבעיה בבקשה תעזרו לי..
תודה