Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in D:\Server\xampp\htdocs\html\index.php on line 138
KOD
/*$thumbs*/ //aktualna strona z wynikami $tpr = 8; //Ile ma być wyników w wierszu $rps = 6; //ile ma być wierszy na strone $comsort = '`comid` LIKE "'.$comid.'" OR `comid` LIKE "%,'.$comid.'" OR `comid` LIKE "'.$comid.',%" OR `comid` LIKE "%,'.$comid.',%"';//zmienna do szukania wg producenta $ucatsort = '`catid` LIKE "'.$ucat.'" OR `catid` LIKE "%,'.$ucat.'" OR `catid` LIKE "'.$ucat.',%" OR `catid` LIKE "%,'.$ucat.',%"';//zmienna do szukania wg podkategorii $cond = 'WHERE '.$comsort.' AND '.$ucatsort; ///Zapytania $thumbs_max_tresc = 'SELECT `id`,`name`,`photo`,`thumb`,`catid`,`comid` FROM `galeria` `comid` LIKE "'.$comid.'" OR `comid` LIKE "%,'.$comid.'" OR `comid` LIKE "'.$comid.',%" OR `comid` LIKE "%,'.$comid.',%" AND `catid` LIKE "'.$ucat.'" OR `catid` LIKE "%,'.$ucat.'" OR `catid` LIKE "'.$ucat.',%" OR `catid` LIKE "%,'.$ucat.',%"';
Pogrubione to linia 138
Proszę o pomoc :/