Sun Oct 26, 2008 7:32 pm
<?php
mysql_connect("server","database","password");
mysql_select_db("userdb");
$query = "SELECT id, firstname FROM Employee";
$result = mysql_query($query);
for ($count=0; $count <= mysql_numrows($result); $count++) {
$id = mysql_result($result, $count, "id");
$name = mysql_result($result, $count, "firstname");
echo "$firstname ($id) <br />";
}
?>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.