<html>
<body>
<?php
$db = mysql_connect("localhost", "root");
mysql_select_db("mydb", $db);
$result = mysql_query("SELECT * FROM books",$db);
echo "Title: ".mysql_result($result,0,"title")."<br>\n";
echo "Author: ".mysql_result($result,0,"author")."<br>\n";
echo "Price: ".mysql_result($result,0,"price")."<br>\n";
?>
</body>
</html>