hata kodu :
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/canwallpaper/public_html/timeline/ajax.php on line 9 bos
burdan da canlı görebilirsiniz:
hatalı gösterilen dosya
<?php
require("../config.php");
if ($_POST){
$id = $_POST["İd"];
$bul = mysql_query("select * from wss_wallpapers where id < $id order by id desc limit 5");
$say = mysql_num_rows($bul);
if ($say > 0){
while ($veri = mysql_fetch_array($bul)){
echo '<li id="'.$veri["id"].'">'.$veri["name"].'</li>';
}
}else {
echo 'bos';
}
}index dosyası :
<?php require("../config.php"); ?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title> Time lİne</title>
<style type="text/css">
body {margin: auto; font: 12px/21px arial}
ul, li {padding: 0; margin: 0; list-style: none}
#blok { width: 250px; height: 300px; overflow: auto; position: fixed; top: 0; right: 0; background-color: #f1f1f1; border: 1px solid #ccc}
.blok ul li {padding: 30px; border-bottom: 1px solid #ddd}
#loader {background-color: #fff; border:1px solid #ccc; margin: 10px; padding:8px; text-align: center; display:none }
</style>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
$(function(){
$("#blok").scroll(function(){
if ($(this).scrollTop() === $(".blok").height() - $(this).height()){
$("#loader").show();
var id = $(".blok ul li:last").attr("id");
$.ajax({
type: "post",
url: "ajax.php",
data: {"id":id},
success: function(veri){
if (veri == 'bos'){
$("#loader").html("Baska Veri Yok");
}else {
$(".blok ul"). append(veri);
$("#loader").hide();
}
}
});
}
});
});
</script>
</head>
<body >
<div id="blok">
<div class="blok">
<ul>
<?php
$bul = mysql_query("select * from wss_wallpapers order by id desc limit 5");
while ($veri = mysql_fetch_array($bul)){
echo '<li id="'.$veri["id"].'">'.$veri["name"].'</li>';
}
?>
</ul>
<div id="loader"><img src="loader.gif"/></div>
</div>
</div>
</body>
</html>arkadaslar bi yardım edin lutfen bi turlu cözemedim
