Hi;
I'm writing a php script which is about advertising.I created a table and i wanted to get informations from the column which is in the table , is named "tema".For example ; i created a table which is called "ilan" ; and in the table i created a column which is named "tema" i got the information from the MYSQL "tema='tehnika'"
everything is allright till this moment after this when i opened my php file i couldnt see the ROW which is "tema='tehnika'" in the index although i got to one row .. When i look the sources of my index i see that PHP got allrows and also when i search the browser other rows browser can find but it doesnt show where these words are located :S first i think maybe something wrong with my CSS properties. but it is not about CSS so where is the wrong ? ????
This is my source codes:
<?php
require_once('baglan.php');//i connected to Database//
if($db->connect_errno) die("Veritabanına bağlanılamıyor.".$db->connect_error());
$db->set_charset("utf-8");
$toplam=$db->prepare("SELECT count(*) FROM ilanlar WHERE tema='tehnika'");
$toplam->execute();
$sayfa_sayisi=$toplam->get_result();
$sayfacik=$sayfa_sayisi->fetch_row();
$toplam->close();
$sql=$db->prepare("SELECT * FROM ilanlar WHERE tema='tehnika' Order By id DESC LIMIT ? OFFSET ?");
$limit=4;
$offset=isset($_GET["id"]) ? $_GET["id"] : 0 ;
$sql->bind_param("ii",$limit,$offset);
$sql->execute();
$sql_sonuc=$sql->get_result();
while($row=$sql_sonuc->fetch_array()) {
echo "<div id='ilanlar'>
<h1><img src='yuklemeler/{$row["fotoadi"]}'><a href=detay.php?id={$row["id"]}>{$row["konu"]}</a></h1>
<p><h3>{$row["tarih"]}</h3></p>
<br/></div>
";
}
if($sayfacik[0]>$limit) {
$x = 0 ;
for($i = 0 ; $i<$sayfacik[0];$i+=$limit) {
$x++;
}
}
$db->close();
?>
http://i57.tinypic.com/2ccow9x.png