I'm getting the following errors:
Quote
Quote
//NOT SURE WHY this is though....
Here's the two files I have done
NOTE: This is a learning curve for me am just getting to grips with PHP & MySQL, learning from W3Schools.com. So be kind and gentle pls...
Also I have all the books related to this, but still getting stuck on certain things....
index.php
<?php include 'includes/db.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Site Title</title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <link href="css/style.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="header"> <img src="images/" alt="" title="" /> </div> <div id="wrapper"> <?php $query = "SELECT * FROM photos"; $result = mysql_query($query); ?> </div> </body> </html>
Database Connection: includes/db.php
<?php
$con = mysql_connect("localhost","root","*********");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_close($con);
?>Am doing this using WAMP on PC.
Thanks in advance
Lee
Help




















