Oops…
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<title>PHP Table integration with MySQL</title>
body {
font-family:arial;
color: navy;
}
h1, h2 {
text-align: center;
font-weight: strong;
}
div.text {color: navy;
}
div.right {
text-align: right;
}
div.table {
text-align: center;
margin-left: 20%;
}
</head>
<body>
<?php
echo "Time: “;
echo date(’ H:i:s’);
echo " Date:”;
echo date(‘j F Y’);
?>
PHP Test Area
The following is an attempt at creating a table to recall data from an SQL Database:
The following is a table which will be populated automatically from a Database using a PHP script so that the entries do not need to manually be typed out.
$r->Surname | "; echo "$r->Forename | "; echo "$r->HNN | "; echo "$r->Ad2 | "; echo "$r->TC | "; echo "$r->Postcode | "; } echo '
' . mysqli_error($dbc) . '
Query: ' . $q . '';
mysqli_close($dbc); // Close the database connection.
?>
</html>
Thanks for all your help, I appreciate this has been going on for some time, please don’t feel you have to keep replying but I am so grateful for your help so far. I am doing as much reading as I can as well but so far I don’t understand the different between mysql and mysqli, why there are two methods and what they are used for
Ben