Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in c:\usr\krasnal\www\weryfikacje\wyniki.php on line 7
i nie wyszukuje ilości wyników?
gdy:
plik formularza html:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> <LINK REL="stylesheet" TYPE="text/css" HREF="kolory.css"> </head> <body background="images/right_big.jpg" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <br> <form action="wyniki.php" method="post" target="szukaj_main"> <div align="center">Szukaj na podstawie: <select name="podstawaszukania"> <option value="A">A <option value="B">B </select> Szukane hasło: <input name="haslo" type=text> <input type=submit value="szukaj"> </div> </form> </body> </html>
oraz plik php:
<?php $query2 = "select * from wer where ".$podstawaszukania." like '%".$haslo."%'"; for ($i=0; $i <$num_results2; $i++) { } ?>