<?
@ $db = mysql_pconnect("localhost", "root", "");
if (!$db)
{
echo "Error: Could not connect to database. Please try again later.";
exit;
}
mysql_select_db("test");
$query = "select * from books4 where ap like '%".$ap."%' and gromsviz like '%".$gromsviz."%' and htmlbrayzer like '%".$htmlbrayzer."%'and Kal like '%".$Kal."%' and spisokzadaz like '%".$spisokzadaz."%'and pda like '%".$pda."%' and ligushka like '%".$ligushka."%' and ems like '%".$ems."%' and java like '%".$java."%'and Polif like '%".$Polif."%' and cvet like '%".$cvet."%' and clock like '%".$clock."%' and Golosnabor like '%".$Golosnabor."%'and irda like '%".$irda."%' and tokomp like '%".$tokomp."%' and golosoviekomandi like '%".$golosoviekomandi."%'and kamera like '%".$kamera."%' and bluetooth like '%".$bluetooth."%' and mms like '%".$mms ."%'and pop3klient like '%".$pop3klient."%' and konverter like '%".$konverter."%' and Vibro like '%".$Vibro ."%' and gprs like '%".$gprs."%' and game like '%".$game."%' and dictofon like '%".$dictofon."%' and changepanel like '%".$changepanel."%' and fmradio like '%".$fmradio."%' and avtodozvon like '%".$avtodozvon."%' and model like '%".$model."%'
and batarei like '%".$batarei."%'";
$result = mysql_query($query);
$num_results = mysql_num_rows($result);
for ($i=0; $i <$num_results; $i++)
{
код
}
?>