Jump to content

can anyone tell me why this shouldn't work?


toddtwiddy

Recommended Posts

   <?php

         $query = "select * from items";

         $result = mysql_query($query);

         while ($row = mysql_fetch_row($result))

         {

?>   

             <tr>

               <td>

               <?= $row['name']?>

               </td> 

            </tr>

<?php

}



?>

 

This is the error I'm getting and I just can't figure out why?

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/content/65/9110965/html/index.php on line 77

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.