could you have a look at the code below and tell me if this is correct, becuase it connect with the server but it does not update the database.
<?php
//This sets the database connection
$db_host = “mysql_”;
$db_username = “”;
$db_password = “”;
$db_database = “”;
$db = mysql_connect ($db_host, $db_username, $db_password);
Mysql_select_db($db_database, $db);
//This checks for the values
if(isset($_POST[“txtRunnerID”]) &&
(isset($
(isset($_POST[“txtDateID”]) &&
(isset($
(isset($_POST[“txtPositionID”])
(isset($
(isset($_POST[“txtAgeGradeID”]) &&
(isset($
//Set variable names
$RunnerID = $_POST[‘txtRunnerID’];
$EventID = $
$Date = $_POST[‘txtDateID’];
$FinishTime = $
$Position = $_POST[‘txtPositionID’];
$Category = $
$AgeGrade = $_POST[‘txtAgeGradeID’];
$PersonalBest = $
//Insert values into Results table
$query = “INSERT INTO Results
(txtRunnerID, txtEventID, txtDateID, txtFinishTimeID, txtPositionID, txtCategoryID, txtAgeGradeID, txtPersonalBestID) VALUES (‘$RunnerID’,’$EventID’,’$Date’, ‘$FinishTime’,’$Position’, ‘$CategoryID’, ‘$AgeGrade’, ‘$PersonalBest’)”;
mysql_query($query);
?>