session_start();
include 'sistem.php';
include 'ayar.php';
$aranan=$_POST["aramak"];
$ara = sprintf("SELECT * from postlar where tag like '%s%%'", mysql_real_escape_string('$aranan'));
$sorgu = mysql_query($ara);
echo $sorgu["yazi"];
?>
Konu: site içi arama yapmak ?
session_start();
include 'sistem.php';
include 'ayar.php';
$aranan=$_POST["aramak"];
$ara = sprintf("SELECT * from postlar where tag like '%s%%'", mysql_real_escape_string('$aranan'));
$sorgu = mysql_query($ara);
echo $sorgu["yazi"];
?>