<?php mysql_connect("mysql153.secureserver.net","java2s","password"); mysql_select_db("java2s"); $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 />"; } ?>