iyi akşamlar arkadaşlar php makale sitemde benzer başlıklar yapmaya çalıştığımda aşağıdaki hatayı alıyorum ne yapabiliriz..
sprintin geldiği yol
PHP:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/makalem/public_html/oku.php on line 106
PHP:
<?php $kxk = mysql_query("select * from blog WHERE and MATCH (baslik) AGAINST ('$baslik*' IN BOOLEAN MODE) order by id desc limit 5");
while($jxj = mysql_fetch_array($kxk)){ if($print['seourl']==".php"){
?>
<?php }elseif($print['seourl']==".html"){?>
<li><a href="blog-<?php echo $jxj['sefurl'];?>.html"><?php echo $jxj['baslik']; ?></a></li>
<?php } } ?>
sprintin geldiği yol
PHP:
<?php
session_start();
include("config.php");
mysql_query("SET NAMES 'utf8'");
mysql_query("SET CHARACTER SET utf8");
mysql_query("SET COLLATION_CONNECTION = 'utf8_bin'");
$query = mysql_query("select * from settings");
while($print = mysql_fetch_array($query)){
$url = $_GET['url'];
$sor = mysql_query("select * from blog where sefurl='$url'");
if(mysql_num_rows($sor)=="0"){ header("Location:404.php"); }else{
while($yaz = mysql_fetch_array($sor)){ $kat = $yaz['kategori']; $id = $yaz['id'];
$cxc = mysql_query("select * from blogkat where sefurl='$kat'");
mysql_query("Update blog SET hit=(hit+1) where id ='$id' ");
while($ooo = mysql_fetch_array($cxc)){
?>