Merhaba nerede hata oldugunu bulamadım ama sonradan oluştu bıturlu cozemedım gozumden ne kaçtı kontrol eden phpcı arkadaşlara şımdıden teşekkurler.
hata satır: Call to a member function fetch() on boolean in /home/atalay/public_html/urun.php on line 123
<?php include('db.php'); $gelen = $_GET['urun']; $ur = $bag->query("select * from urunler where sefurl='$gelen'")->fetch(PDO::FETCH_ASSOC); $h = $ur['urun_id']; ?>
<!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" class="ancient-ie old-ie no-js" dir="ltr">
<![endif]-->
<!--[if IE 7]>
<html id="ie7" class="ancient-ie old-ie no-js" dir="ltr">
<![endif]-->
<!--[if IE 8]>
<html id="ie8" class="old-ie no-js" dir="ltr">
<![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!-->
<?php include('db.php'); $yar = $bag->query("select * from ayarlar where ayar_id=1")->fetch(PDO::FETCH_ASSOC); ?>
<html dir="ltr" class="no-js">
<!--<![endif]-->
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="initial-scale=1, maximum-scale=2">
<meta keywords="<?php echo $yar['keywords']; ?>">
<title><?php echo $yar['siteadi']; ?> | <?php echo $ur['baslik']; ?></title>
<base href="<?php echo $yar['siteurl']; ?>">
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link href="css/normalize.css" rel="stylesheet" type="text/css">
<link href="css/wireframe.css" rel="stylesheet" type="text/css">
<link href="css/main.css" rel="stylesheet" type="text/css">
<link href="css/media.css" rel="stylesheet" type="text/css">
<link href="skins/red/custom.css" rel="stylesheet" type="text/css" id="skin-style">
<!-- RoyalSlider -->
<link rel="stylesheet" href="royalslider/royalslider.css">
<link rel="stylesheet" href="css/plugins.css">
<link rel="stylesheet" href="js/plugins/pretty-photo/css/prettyPhoto.css" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato:400,700,900" rel="stylesheet" type="text/css"> <!-- All skins -->
<link href="https://fonts.googleapis.com/css?family=Titillium+Web:600,600italic" rel="stylesheet" type="text/css"> <!-- "Retro" skin -->
<link href="https://fonts.googleapis.com/css?family=Patua+One" rel="stylesheet" type="text/css"> <!-- "Business" skin -->
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed" rel="stylesheet" type="text/css"> <!-- "Green" skin -->
<link href="https://fonts.googleapis.com/css?family=Sanchez" rel="stylesheet" type="text/css"> <!-- "Organic" skin -->
<script src="js/modernizr.js"></script>
</head>
<body class="single single-portfolio">
<div id="page" ><!-- class="boxed" -->
<!-- !Top-bar -->
<div id="top-bar" role="complementary">
<div class="wf-wrap">
<div class="wf-table wf-mobile-collapsed">
<div class="wf-td">
<div class="mini-contacts wf-float-left">
<ul>
<li class="address"><?php echo $yar['adres']; ?></li>
<li class="phone"><?php echo $yar['telefon']; ?></li>
<li class="email"><a href="mailto:<?php echo $yar['eposta']; ?>"><?php echo $yar['eposta']; ?></a></li>
</ul>
</div>
<!-- <div class="mini-nav wf-float-left">
<ul>
<li><a href="#">Support Policy</a></li>
<li><a href="#">Online Helpdesk</a></li>
<li><a href="#">ThemeForest Profile</a></li>
</ul>
</div> -->
</div>
</div><!-- .wf-table -->
</div><!-- .wf-wrap -->
</div><!-- #top-bar -->
<header id="header" class="logo-left" role="banner"><!-- class="overlap"; class="logo-left", class="logo-center", class="logo-classic" -->
<div class="wf-wrap">
<div class="wf-table">
<!-- !- Branding -->
<div id="brandin" class="wf-td">
<?php include('db.php'); $logo = $bag->query("select * from sitelogo where logo_id=1")->fetch(PDO::FETCH_ASSOC); ?>
<a href="anasayfa"><img src="usr/<?php echo $logo['logo']; ?>" width="189" height="79" alt=""></a>
</div>
<!-- !- Navigation -->
<?PHP include('header.php'); ?>
</div><!-- .wf-table -->
</div><!-- .wf-wrap -->
</header><!-- #header -->
<!-- !Main -->
<div id="main" class="sidebar-right"><!-- class="sidebar-none", class="sidebar-left", class="sidebar-right" -->
<div class="wf-wrap">
<div class="wf-container-main">
<!-- !- Content -->
<div id="content" role="main" class="content">
<article class="project-post">
<h1 class="entry-title"><?php echo $ur['baslik']; ?></h1>
<div class="navigation-inner">
</div>
<div class="hr-breadcrumbs divider-heder">
<div class="assistive-text">Buradasınız:</div>
<ol class="breadcrumbs wf-td text-small">
<li><a href="anasayfa">Ana Sayfa</a></li>
<li><a href="#"><?php echo $ur['baslik']; ?></a></li>
</ol>
</div>
<div class="wf-container">
<div class="wf-cell wf-1">
<ul class="royalSlider slider-post rsShor" role="slider" style="width: 100%;" data-width="890" data-height="400">
<?php include('db.php'); $res = $bag->query("SELECT * FROM urunresimler WHERE resimkat=$h")->fetch(PDO::FETCH_ASSOC);
foreach($res as $dp){ ?>
<li>
<img class="rsImg" src="usr/urunler/<?php echo $dp['resim']; ?>" alt="" height="400" width="890">
<div class="slider-post-caption">
<div class="slider-post-inner">
<p><?php echo $ur['baslik']; ?></p>
</div>
</div>
</li>
<?php } ?>
</ul>
</div>
<div class="gap-10"></div>
<div class="wf-cell wf-2-3">
<p><?php echo $ur['metin']; ?></p>
</div>
<div class="wf-cell wf-1-3">
<span><strong>Ürün:</strong></span> <p> <?php echo $ur['baslik']; ?></p>
<div class="hr-thin"></div>
</div>
</div>
</article><!-- .post -->
<!-- Begin Full Width Slider two -->
<div class="slider-wrapper related-projects">
<div class="frame fullwidth-slider" style="height:180px;">
<ul class="clearfix" style="height:180px;">
<?php include('db.php'); $urunler = $bag->query("select * from urunler order by urun_id desc")->fetchAll(PDO::FETCH_ASSOC);
foreach($urunler as $uruns){
?>
<li class="fs-entry">
<img width="263" height="180" alt="" src="usr/urunler/<?php echo $uruns['resim']; ?>">
<span class="link show-content"></span>
<div class="fs-entry-content">
<h4><?php echo $uruns['baslik']; ?></h4>
<a class="project-details" href="urun/<?php echo $uruns['sefurl']; ?>">Detaylar</a> <span class="close-link"></span>
</div>
</li>
<?php } ?>
</ul>
</div>
<div class="fs-navigation controls center">
<div class="prev"></div>
<div class="next"></div>
<div class="fs-title">Son Ürünler</div>
</div>
</div>
<!-- End Full Width Slider -->
<!-- !-- Comments -->
</div><!-- #content -->
<!-- !- Sidebar -->
<aside id="sidebar" role="complementary" class="sidebar">
<!-- !-- Contact info -->
<section class="widget">
<div class="widget-title">İletişim Detayları</div>
<ul class="contact-info">
<li><span class="secondary-color">Adres:</span><br /> <?php echo $yar['adres']; ?></li>
<li><span class="secondary-color">Telefon:</span><br /> <?php echo $yar['telefon']; ?> | <?php echo $yar['gsm']; ?></li>
</ul>
<div class="soc-ico">
<p class="assistive-text">Bize Ulaşın:</p>
<a class="facebook" href="<?php echo $yar['facebook']; ?>" target="_blank" title="Facebook"><span class="assistive-text">Facebook</span></a>
<a class="instagram" href="<?php echo $yar['instagram']; ?>" target="_blank" title="Dribbble"><span class="assistive-text">Dribbble</span></a>
<a class="google" href="<?php echo $yar['google']; ?>" target="_blank" title="Google+"><span class="assistive-text">Google+</span></a>
<a class="twitter" href="<?php echo $yar['twitter']; ?>" target="_blank" title="Twitter"><span class="assistive-text">Twitter</span></a>
<a class="you-tube" href="<?php echo $yar['youtube']; ?>" target="_blank" title="youtube"><span class="assistive-text">Youtube</span></a>
</div>
</section><!-- .widget -->
</aside><!-- #sidebar -->
</div><!-- .wf-container -->
</div><!-- .wf-wrap -->
</div><!-- #main -->
<?php include('footer.php'); ?>
<!-- !Bottom-bar -->
<?php include('alt.php'); ?>
</div><!-- #page -->
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/jquery-migrate-1.1.1.min.js"></script>
<!-- RoyalSlider -->
<script src="royalslider/jquery.royalslider.js"></script>
<script src="js/plugins/pretty-photo/js/jquery.prettyPhoto.js"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<link rel="stylesheet" href="presscore-demo/css/show.css" type="text/css" />
</body>
</html>