<?php
mysql_pconnect("localhost","username","password");
mysql_select_db("DBname");
?>
[code]
then on all your pages that need to access your DB, you would put this line at the top
[code]
<?php include("db.php"); ?>
<!--then you can put some discriptive HTML-->
<form method=post action=pagename.php?action=submit>
<input type=text size=3 value=0 name=3dmark>
<input type=submit value=submit>
</form>
<?php
if ($action == submit) {
$3dmark =floor($3dmark); // this will keep people from imputting improper scores
$3dmark = str_replace("--","", $3dmark);
mysql_query("INSERT INTO Tablename (columb) Values $3dmark"); // this is your DB connection, saying what to put into your DB
print "Thank you for submitting your score of $3dmark";
?>