Sat Apr 07, 2007 12:55 pm
$connection =mysql_connect("localhost","root","",true,1);
mysql_select_db("library",$connection);
$result1 = mysql_query ("SELECT * FROM
book", $connection);
while ($row = mysql_fetch_row($result1))
{
// (4) Print out each element in $row, that is,
// print the values of the attributes
for ($i=0; $i";
}
// (5) Close the database connection
mysql_close($connection);
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.