$ks=mysql_query("select * from slide order by sira") or die (mysql_error());
while($ky=mysql_fetch_assoc($ks))
{
$sid =$ky['ID'];
$sad =$ky['baslik'];
$sad2 =$ky['metin'];
$sira =$ky['sira'];
$sres =$ky['resim'];
?>
} ?>
We are exporting the best quality products with qualified service
$ks=mysql_query("select * from urun order by ID ") or die (mysql_error());
while($ky=mysql_fetch_assoc($ks))
{
$nid =$ky['ID'];
$nad =$ky['baslik'];
$nseo =$ky['seo'];
$nkid =$ky['kid'];
if(empty($nkid)){$kad='';}else{
$kat = mysql_fetch_assoc(mysql_query("select * from urun_kategori where ID='$nkid'"));
$kad = ''.$kat['seo'];}
$nres =$ky['resim'];
if(empty($ures))
{
$ures='resim-yok.jpg';
}
else
{
$ures=$ures;
}
?>
} ?>
$ks=mysql_query("select * from galeri_resim where kid='2' order by id desc ") or die (mysql_error());
while($ky=mysql_fetch_assoc($ks))
{
$nid =$ky['ID'];
$nad =$ky['baslik'];
$nkid =$ky['kid'];
if(empty($nkid)){$kad='';}else{
$kat = mysql_fetch_assoc(mysql_query("select * from galeri where ID='$nkid'"));
$kad = ''.$kat['baslik'];
$ksad = ''.$kat['seo'];}
$nres =$ky['resim'];
if(empty($ures))
{
$ures='resim-yok.jpg';
}
else
{
$ures=$ures;
}
?>