function codes($text) { $text = str_replace(''.$word.'',''.$word.'', $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 "
| ".$t['title']." | ||
|
".codes($t['page'])."
|