title: Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in Error
body: <p>This is my page</p>
  
  <pre><code> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;?php
  require("admin/config/connect.php");
  
  ?&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;META http-equiv=content-type content=text/html;charset=iso-8859-9&gt;
  &lt;META http-equiv=content-type content=text/html;charset=windows-1254&gt;
  &lt;META http-equiv=content-type content=text/html;charset=x-mac-turkish&gt;
  &lt;meta name="keywords" content="" /&gt;
  &lt;meta name="description" content="" /&gt;
  &lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;Lettering by FCT&lt;/title&gt;
  &lt;link href="http://fonts.googleapis.com/css?family=Arvo" rel="stylesheet" type="text/css" /&gt;
  &lt;link href="style.css" rel="stylesheet" type="text/css" media="screen" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="wrapper"&gt;
      &lt;div id="page"&gt;
          &lt;div id="page-bgtop"&gt;
              &lt;div id="page-bgbtm"&gt;
                  &lt;div id="content"&gt;
                    &lt;div class="post"&gt;
                    &lt;?php $id = $_REQUEST["id"]; 
                     $sorgu=mysql_query("select * from portalmakale where id='$id'");
  
  $oku=mysql_fetch_assoc($sorgu);
  
                    ?&gt;
                        &lt;h2 class="title"&gt;&lt;?php echo $oku['baslk']; ?&gt;&lt;/h2&gt;
                          &lt;p class="meta"&gt;&lt;?php echo $oku['tarih']; ?&gt;&lt;/p&gt;
                          &lt;div style="clear: both;"&gt;&lt;/div&gt;
                          &lt;div class="entry"&gt;
                              &lt;p&gt;&lt;?php echo $oku['icerk']; ?&gt;&lt;/p&gt;
                              &lt;p class="links"&gt;&lt;a href="#"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/a&gt;&lt;/p&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
                    &lt;div class="post"&gt;
                    &lt;?php session_start();
  
  
      $sayi1 = rand(1,100);
      $sayi2 = rand(1,600);
  
  
  
      $toplam_sayi = $sayi1+$sayi2;
  
  
      $_SESSION['guvenlik_kodu'] = "$toplam_sayi";
  
  
    ?&gt;
                      &lt;center&gt;&lt;p&gt;&lt;font size="+2"&gt;Yorum Yapın! &lt;/font&gt;&lt;/p&gt;
                      &lt;p&gt;&lt;font size="2"&gt;&amp;quot;Amaaan yorum yapsam nolur yapmasam nolur :S Ne işime yarıcak &lt;/font&gt;&amp;quot; demeden yorumlarınızın değerli olduğunu hatırlatalım .&lt;/p&gt;
                      &lt;center&gt;  &lt;form id="form1" method="post" action="yorumekle.php?id=&lt;?php echo $id ?&gt;"&gt;
                        &lt;table width="404" height="155" border="0"&gt;
  
    &lt;tr&gt;
      &lt;th width="67" scope="row"&gt;Ad&lt;/th&gt;
      &lt;td width="117"&gt;&lt;center&gt;&lt;input name="ad" type="text" /&gt;&lt;/center&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th scope="row"&gt;Email&lt;/th&gt;
      &lt;td&gt;&lt;center&gt;&lt;input name="email" type="text" /&gt;&lt;/center&gt;&lt;/td&gt;
    &lt;/tr&gt;
     &lt;tr&gt;
      &lt;th scope="row"&gt;Mesaj&lt;/th&gt;
      &lt;td&gt;&lt;center&gt;&lt;textarea  name="mesaj"  rows="7" cols="30"&gt;&lt;/textarea&gt;&lt;/center&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th scope="row"&gt;Doğrulama&lt;/th&gt;
      &lt;td&gt;&lt;center&gt;&lt;input name="dorulama" type="text" /&gt;&lt;/center&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th scope="row"&gt;G&amp;ouml;nder&lt;/th&gt;
      &lt;td&gt;&lt;center&gt;&lt;input name="" type="submit" value="Gönder" /&gt;&lt;/center&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
                      &lt;/form&gt;&lt;/center&gt;
                        &lt;p&gt;Sizin İçin Hiçbir Masraftan Kaçınmayıp, Yemeden i&amp;ccedil;menden, G&amp;uuml;nlerce oturup yazdığımız ve &amp;ccedil;alışıp didinip emektar annelercesine uğraşıp oluşturduğumuz doğrulama kodunuz .&lt;/p&gt;
                        &lt;p&gt;&lt;font size="+1"&gt;&lt;?php echo'Güvenlik kodu: '; echo $sayi1+$sayi2 ?&gt;&lt;/font&gt;&lt;/p&gt;
  
                      &lt;/center&gt;
                      &lt;div class="entry"&gt;
                          &lt;p&gt;&lt;center&gt;Css Ve Php bilgilerimizin el verdiğince yayınlayabildiğimiz yapılan yorumlar &lt;/center&gt;.&lt;center&gt;
                           &lt;?php
  
  
  //kaç tane gösterileceğini girin
  $gosterim=5;
  //gösterilecek sayfa numarasını alma
  $sayfa=@$_GET['sayfa'];
  //sayfa numarası kontrolü
  if(empty($sayfa) || !is_numeric($sayfa)){$sayfa=1;}
  
  //toplam kayıt sayısını alma
  $k_sayisi=mysql_num_rows(mysql_query("Select yorumid From yorum"));
  //kaç sayfa olacağını bulma
  $s_sayisi=ceil($k_sayisi/$gosterim);
  //hangi kayıttan itibaren gösterileceğini bulma
  $ilk_kayit=($sayfa*$gosterim)-$gosterim;
   ?&gt;
                          &lt;?php $veri = mysql_query('select ad,mesaj from yorum where id=$id');
  
                    ?&gt;
                          &lt;table width="522" border="1"&gt;
    &lt;tr&gt;
      &lt;th scope="col"&gt;Ad&lt;/th&gt;
      &lt;th scope="col"&gt;Mesaj&lt;/th&gt;
    &lt;/tr&gt;
    &lt;?php  while($row = mysql_fetch_array($veri)){?&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;?php echo $row['ad'];?&gt;&lt;/td&gt;
      &lt;td&gt;&lt;?php echo $row['mesaj'];?&gt;&lt;/td&gt;
    &lt;/tr&gt; &lt;?php } ?&gt;
  &lt;/table&gt;&lt;center&gt;
  &lt;/p&gt; &lt;?php
  
  
  
  //ilk sayfaya gitme bağlantısı
  if($sayfa!=1){
      echo "&lt;a href='?id=&amp;sayfa=1'&gt;İlk&lt;/a&gt;";
      echo " ";
  }
  //diğer sayfalara geçiş bağlantısı koyma
  for($i=1;$i&lt;=$s_sayisi;$i++){
      echo "&lt;a href='?id=$id&amp;sayfa={$i}'&gt;$i&lt;/a&gt;";
      echo " ";
  }
  //en son sayfaya gitme bağlantısı
  if($sayfa!=$s_sayisi){
      echo "&lt;a href='?id=$id&amp;sayfa={$s_sayisi}'&gt;Son&lt;/a&gt;";
  }
  
  ?&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;!-- end #content --&gt;
                  &lt;div id="sidebar"&gt;
                      &lt;div id="logo"&gt;
                          &lt;h1&gt;&lt;a href="index.php"&gt;MybbEklenti&lt;/a&gt;&lt;/h1&gt;
                          &lt;p&gt;slogans&lt;a href="http://www.freecsstemplates.org/" rel="nofollow"&gt;&lt;/a&gt;&lt;/p&gt;
                      &lt;/div&gt;
                      &lt;div id="menu"&gt;
                          &lt;ul&gt;
                              &lt;li class="current_page_item"&gt;&lt;a href="#"&gt;Portal&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="#"&gt;Hakkımızda&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="#"&gt;İletişim&lt;/a&gt;&lt;/li&gt;
                          &lt;/ul&gt;
                      &lt;/div&gt;
                      &lt;ul&gt;
                          &lt;li&gt;
                              &lt;h2&gt;Duyurular&lt;/h2&gt;
                              &lt;p&gt;Mauris vitae nisl nec metus placerat perdiet est. Phasellus dapibus semper consectetuer hendrerit.&lt;/p&gt;
  
                          &lt;/li&gt;
                        &lt;li&gt;
                              &lt;h2&gt;Kategoriler&lt;/h2&gt;
                              &lt;ul&gt;
                                  &lt;li&gt;&lt;a href="#"&gt;Aliquam libero&lt;/a&gt;&lt;/li&gt;
                                  &lt;li&gt;&lt;a href="#"&gt;Consectetuer adipiscing elit&lt;/a&gt;&lt;/li&gt;
                                  &lt;li&gt;&lt;a href="#"&gt;Metus aliquam pellentesque&lt;/a&gt;&lt;/li&gt;
                                  &lt;li&gt;&lt;a href="#"&gt;Suspendisse iaculis mauris&lt;/a&gt;&lt;/li&gt;
                                  &lt;li&gt;&lt;a href="#"&gt;Urnanet non molestie semper&lt;/a&gt;&lt;/li&gt;
                                  &lt;li&gt;&lt;a href="#"&gt;Proin gravida orci porttitor&lt;/a&gt;&lt;/li&gt;
                              &lt;/ul&gt;
                          &lt;/li&gt;
                          &lt;li&gt;&lt;/li&gt;
                          &lt;li&gt;                        &lt;/li&gt;
                      &lt;/ul&gt;
                  &lt;/div&gt;
                  &lt;!-- end #sidebar --&gt;
                  &lt;div style="clear: both;"&gt;&amp;nbsp;&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;!-- end #page --&gt;
  &lt;/div&gt;
  &lt;div id="footer"&gt;
      &lt;p&gt;T&amp;uuml;m Hakları Saklıdır !&lt;/p&gt;
  &lt;/div&gt;
  &lt;!-- end #footer --&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>My error is Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\lettering\makale.php on line 113. How can i fix that. Line 113 is ;</p>
  
  <pre><code>&lt;?php  while($row = mysql_fetch_array($veri)){?&gt;
  </code></pre>
  
  <p>İ tried every way to fix that but i still get that error this is the image of the error ;</p>
  
  <p><a href="http://www.yukleresim.com/images/2013/10/14/Screenshot1.png" rel="nofollow">http://www.yukleresim.com/images/2013/10/14/Screenshot1.png</a></p>