I have been dabling with link PHP and MySQL and I have worked the basics.
One problem, if you check it out here:
You will get a form, posting to a database, enter details and click submit, you will get a message saying Cheers! and a link to view, all entries, but it only shows the first entrY i submitted, although in the database there is at least three...
the code for the view.php (viewing page) is as follows:
Can you see where I have gone wrong?
Make Sense? I hope so (-:
One problem, if you check it out here:
You will get a form, posting to a database, enter details and click submit, you will get a message saying Cheers! and a link to view, all entries, but it only shows the first entrY i submitted, although in the database there is at least three...
the code for the view.php (viewing page) is as follows:
Code:
<html>
<head>
<title>view.php</title>
<?php
$db = mysql_connect('localhost','*******','******');
mysql_select_db('themalloys_uk_db',$db);
$requete = "SELECT * FROM test";
$result = mysql_query ($requete,$db);
$test = mysql_fetch_object($result);
mysql_free_result($result);
?>
</head>
</body>
<?php echo $test->name ?>
<br>
<?php echo $test->email ?>
<br>
<?php echo $test->hobby ?>
<br>
<?php echo $test->comments ?>
</body>
</html>
Make Sense? I hope so (-: