Thanks to all the help from people at this site, I have finally cracked my problem...or nearly
The following code takes data from a form, and transfers it to a mysql database
<?php
$name = $HTTP_POST_VARS['name'];
$score = $HTTP_POST_VARS['score'];
$db = mysql_connect("sql-01.portlandpremium.co.uk", "username", "pwd");
$link = mysql_select_db("mydb",$db);
$sql = "INSERT INTO test (name, score) VALUES ('$name', '$score')";
$result = mysql_query($sql) or die(mysql_error());
?>
Brilliant, heres the problem, the database is recording the scores from a test. If the person has already sat the test, I want their score to update, not to create a new record, but if they have not sat the test, I would like a new record to be created......
Is this to much for my limited skills
Look forward to hearing from someone you lovely people.
Sean