PHP Source Code »

 

Store query result in an array



<?php

   mysql_connect("mysql153.secureserver.net","navioo","password");
   mysql_select_db("navioo");

   $query = "SELECT * FROM Employee";
   $result = mysql_query($query);

   while ($row = mysql_fetch_array($result,MYSQL_NUM)) {
      $name = $row[1];
      $developerid = $row[0];
      echo "Product: $name ($developerid) <br />";
   }

?>


           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo