<script></script>
<script>
$(document).ready(function()
{
$("#konuno").change(function()
{
var dataString = 'konuno='+ $(this).val();
$.ajax
({
type: "POST",
url: "ajaxden1.php",
data: dataString,
cache: false,
success: function(html)
{
$("#konuack ").html(html);
}
});
});
});
</script>
ajaxden1.php ------
$link2 = mysql_connect('localhost', 'cms', 'pass');
if (!$link2) {
die('Bağlanamadı: ' . mysql_error());
}
//Connect is Succesful
mysql_select_db("cms",$link2);
if(isset($_POST["konuno"]) && isset($_POST["opno"]) ){
$konuno=$_POST["konuno"];
$name=$_POST["name"];
$konuack =$_POST["konuack "];
$getir=mysql_query("select * from konus where link like '$konuno%' and konuack like '$konuack %' ");
$row=mysql_fetch_array($getir);
echo '
Açıklama |
}
else if(isset($_POST["kra7"])){
$konuno=$_POST["konuno"];
$getir1=mysql_query("select * from konus where link like '$konuno%'");
echo '';
while($row1=mysql_fetch_array($getir1)){
echo '';
}
}
?>