Ver original$query="SELECT * FROM $tablename WHERE nick="+$_POST['nick']+";";
Ver original$query="SELECT * FROM $tablename WHERE nick='".$_POST['nick']."';";