Тема: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in Z:\home\competitionEE\www\index.php on line 84
<?php
$result= mysql_query("SELECT *FROM table_one WHERE visible='1' ORDER BY $sorting",$link);
if(mysql_num_rows($result)> 0)    
{
 $row=mysql_fetch_array($result);
 do{
    
if  ($row["image"] != "" && file_exists("./uploads_image/".$row["image"]))
{
$img_path = './uploads_image/'.$row["image"];
$max_width = 200; 
$max_height = 200; 
 list($width, $height) = getimagesize($img_path); 
$ratioh = $max_height/$height; 
$ratiow = $max_width/$width; 
$ratio = min($ratioh, $ratiow); 
$width = intval($ratio*$width); 
$height = intval($ratio*$height);    
}else{
$img_path="/image/no-image.phg";
$width=110;
$height=200;
  }  
    
    echo'
    <li>
    <div class="block-images-grid">
    <img src="'.$img_path.'" width="'.$width.'" height="'.$height.'"/>
    </div>
    <p class="style-title-grid"><a  href="">'.$row["title"].'</a></p>
    <ul class="reviews-and-counts-grid">
    <li><img src="/image/eye-icon.png" /><p>0</p></li>
    <li><img src="/image/comment-icon.png" /><p>0</p></li>
    </ul>
     <div class="mini-features">
     '.$row["mini_description"].'
     </div>  
    </li>
    ';
    }   
    while($row=mysql_fetch_array($result));
}
  
   
?>if(mysql_num_rows($result)> 0)    Чомусь бичить на цю строку.Зробив у відповідності до підручника не не хоче працювати.