Sun Oct 26, 2008 8:01 pm
<?php
mysql_connect("server","user","password");
mysql_select_db("userdb");
$query = "SELECT id, firstName FROM Employee";
$result = mysql_query($query);
while ($row = mysql_fetch_object($result)) {
$name = $row->firstName;
$id = $row->id;
echo "Product: $name ($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.