rendered paste bodyfunction codes($text)
{
$text = str_replace(''.$word.'','<span style="background-color:yellow;color:white;">'.$word.'</span></td></tr></table>', $text);
return nl2br($text);
echo $text;
}
if($_GET['shon'] == "search" AND $_GET['id'] AND $_GET['word']) {
$id = $_GET['id'];
$word = $_GET['word'];
// full article in search !
$qy = mysql_query("SELECT * FROM `vgo_articles` WHERE `id` = '$id'") or die(mysql_error());
$t = mysql_fetch_array($qy);
$picture = explode(".", $t['picture']);
echo "<div dir='rtl'><table cellspacing=\"0\" cellpadding=\"0\" align=\"center\">
<tr>
<td class=\"tahoma\" align=\"right\" width=\"324\" style=\"background-image:url(images/bg_title.gif);\" height=\"28\">
<b><font face=\"arial\" style=\"font-size: 10pt\" color=\"#accfe5\">".$t['title']."</font></b>
</td>
</tr>
<tr>
<tr>
<td>
<table><tr><td>";
@list($width,$height,$type, $attr) = getimagesize("images/uploads/".$picture[0]."_thumb.gif");
if (($width > 80) && ($height > 100))
{
echo "<img border=\"0\" src=\"images/uploads/".$picture[0]."_thumb.gif\" width=\"80\" height=\"100\" border=\"0\" align=\"right\">";
}else{
echo "<img border=\"0\" src=\"images/uploads/".$picture[0]."_thumb.gif\">";
} echo "</td><td><font size=\"1\" face=\"arial\">".codes($t['text'])."</font></td></tr></table>
</td>
</tr>
<td><div dir='rtl'>
".codes($t['page'])."
</div></td>
</tr>
</table></div>";
}