Can anyone tell me where i'm going wrong with this code? I just can't see a problem with it, but it keeps comeing back saying 'Error, query failed' All help would be great. cheers. [code]<? $shirt=$_POST['shirt']; $firstname=$_POST['firstname']; $surname=$_POST['surname']; $position=$_POST['position']; $played=$_POST['played']; $scored=$_POST['scored']; $conceded=$_POST['conceded']; $injury=$_POST['injury']; $yellow=$_POST['yellow']; $red=$_POST['red']; mysql_connect(localhost,xxxx,xxxx); @mysql_select_db(xxxx) or die( "Unable to select database try again"); $query = ("UPDATE team SET shirt='$shirt', first='$firstname', surname='$surname', position='$position', played='$played', scored='$scored', conceded='$conceded', injury='$injury', yellow='$yellow', red='$red' WHERE shirt = '$shirt'"); mysql_query($query) or die('Error, query failed'); echo "Record Updated"; mysql_close(); ?>[/code]