随机countRows错误?

时间:2012-03-29 20:48:08

标签: php

所以我想出了这个错误,它是:

Fatal error: Call to a member function countRows() on a non-object in 
              C:\xampp\htdocs\results.php on line 22

但这很奇怪,因为第22行是:

$find = strip_tags ( $find );

第20-30行:

        $find = strtolower ( $find );
        $find = strip_tags ( $find );
        $find = trim ( $find );

        $results = mysql_query ( "SELECT * FROM users WHERE type='$type' AND 
                                 price='$price' AND name='$name'" );

        while ( $rows = mysql_fetch_array ( $results ) ) {

                echo "<table>";
                "<tr>";

有人在帮忙吗?

0 个答案:

没有答案