انا استعمل

mysql_fetch_array

وهذا الكود

               <?php  $result=mysql_query("select * from products;");    
               while($row=mysql_fetch_array($result)){ ?>      
               <tr>          
                   <td><img src="<?php echo $row['picture']?>" /></td>             
                   <td>    <b><?php echo $row['name']?></b><br />               
                       <?php echo $row['description']?><br />                     
                       Price:<big style="color:green">                      
                           $<?php echo $row['price']?>
                       </big>
                       <br /><br />                     
                       <input type="button" value="Add to Cart" onclick="addtocart(<?php echo $row['serial']?>)" />
                   </td>   </tr>         <tr>
                       <td colspan="2">
                           <hr size="1" /></td>         
                               <?php }echo mysql_error();();?> 

عند كتابة echo mysql_error(); يظهر على المتصفح هكذا Table 'matjary.products' doesn't exist