I have a form when I enter the information it wont post to the database.
[php]
<?php $hostname="myelstonfamily.db.#######.hostedresource.com"; $dbuser="myelstonfamily"; $pass="password"; $username =$_POST['username']; $adultfees =$_POST['adultfees']; $youthfees =$_POST['youthfees']; $childrenfees =$_POST['childrenfees']; $tyouthsmall =$_POST['tyouthsmall']; $tyouthmedium =$_POST['tyouthmedium']; $tyouthlarge =$_POST['tyouthlarge']; $tadultsmall =$_POST['tadultsmall']; $tadultmedium =$_POST['tadultmedium']; $tadultlarge =$_POST['tadultlarge']; $tadultxl =$_POST['tadultxl']; $tadult2xl =$_POST['tadult2xl']; $tadult3xl =$_POST['tadult3xl']; $link = mysql_connect($hostname,$dbuser, $pass); $db_selected = mysql_select_db('myelstonfamily', $link); if (!$db_selected) { die ('Can\'t use foo : ' . mysql_error()); } else { mysql_query ("INSERT INTO 2012 (username, adultfees, youthfees, childrenfees, tyouthsmall, tyouthmedium, tyouthlarge, tadultsmall, tadultmedium, tadultlarge, tadultxl, tadult2xl, tadult3xl) VALUES('$adultfees','$youthfees','$childrenfees','$tyouthsmall','$tyouthmedium','$tyouthlarge','$tadultsmall','$tadultmedium','$tadultlarge','$tadultxl','$tadult2xl','$tadult3xl')"); } mysql_close($link); ?>[/php]