This is code so far and still the blank page with no error messages
//open connection to the database
<?php
echo "connection to db";
$user = "root";
$host = "localhost";
$password = "westham2k5";
$connection = @mysql_connect($host, $root, $password)
or die ("Couldn't connect to server.");
$database = "courses";
$db = @mysql_select_db($database, $connection)
or die ("Couldn't select database.");
if (isset($_POST['Submit'])) {
echo "hello world";
//insert the values entered into the courseentry form into the database
$url_query_string = "?$coursename=1&$accreditingbody=2&$briefdesc=3&$aimedat=4&$level1=5&$level2=6&$level3=7&$elearning=8&$facetoface=9&$blended=10&$elearningtime=11&$facetofacetime=12&$elearningtime=13&$blendedtime=14";
parse_str($url_query_string);
echo "a = $coursename, b = $accreditingbody, c = $briefdesc, d =$aimedat, e =$level1, f=$level2, g=$level3, h=$elearning, i=$facetoface, j=$blended, k=$elearningtime, m=$facetofacetime, n=$blendedtime, o=$elearningtime;
$sql = "INSERT INTO trainingtopics (coursename, accreditingbody, briefdesc, aimedat, level1, level2, level3, elearning, facetoface, blendedlearning, elearntime, facetime, blendedtime)
VALUES ("'$coursename."', "'$accreditingbody"', "'$briefdesc"', "'$aimedat"', "'$level1"', "'$level2"', "'$level3"', "'$elearning"', "'$facetoface"', "'$blended"', "'$elearningtime"', "'$facetofacetime"', "'$blendedtime"');
$res = mysql_query($sql,$connection) or die(mysql_error());
//check to make sure the query actually ran
if(!$res) {
echo mysql_errno().":".mysql_error()."";
return 0;
//$result = $db->query($sql);
echo $sql;
}
}
echo $coursename;
echo " ";
echo $acceditingbody;
?>