$gquery = "SELECT * FROM api_products WHERE category=".intval($_POST["grup"]);
$gresult = @mysql_query($gquery);
if (@mysql_num_rows($gresult)==0)
{
echo "Kayıt bulunamadı!";
}
else
{
while($grow=mysql_fetch_array($gresult))
{
echo " ";
echo stripslashes($grow['product']);
echo " ";
echo "";
echo stripslashes($grow['descs']);
echo " ";
}
}
?>
if($secim)
{
$squery = "SELECT * FROM api_products WHERE category=$secim";
$sresult = mysql_query($squery);
if (mysql_num_rows($sresult)==0)
{
echo "Kayıt bulunamadı!";
}
else{
?>
}
}
else
{
echo "";
echo "Lütfen ürün seçiniz!";
echo " ";
}
?> |