hey im working on a registration page and for some rison it doesnt work , plz help .

Code:
 <?php
  include "notice.html";
  include "connection.php";



 if (!isset($_POST["insert_button"]))

  {

     ?>
   <FORM action="<?= $_SERVER["notice.php"]; ?>" method="POST">
      <TABLE border=0 cellpadding=7 cellspacing=7>
         <TR>
            <br><br><br><br>
            <TD><font color="#ffbc8c83">account:</font></TD>
            <TD><INPUT type="TEXT" name="account" size=20 maxlength=20 value="<?= $_POST["account"]; ?>"></TD>
         </TR>
         <TR>
            <TD><font color="#ffbc8c83">password:</font></TD>
            <TD><INPUT type="password" name="password" size=20 maxlength=20 value="<?= $_POST["password"]; ?>"></TD>
         </TR>
         <TR>
            <TD><font color="#ffbc8c83">e-mail:</font></TD>
            <TD><INPUT type="TEXT" name="e-mail" size=30 maxlength=50 value="<?= $_POST["e-mail"]; ?>"></TD>
         </TR>
         <TR>
            <TD><font color="#ffbc8c83">age:</font></TD>
            <TD><INPUT type="TEXT" name="age" size=2 maxlength=2 value="<?= $_POST["age"]; ?>"></TD>
         </TR>
         <TR>
            <TD align="right"><INPUT type="SUBMIT" name="insert_button" value="register"></TD>
            <TD align="left"><INPUT type="RESET" value="reset"></TD>
         </TR>
      </TABLE>
   </FORM>
   <?
  }

 if (isset($_POST["insert_button"]))

  {
     $account=$_POST["account"];
     $password=$_POST["password"];
     $e_mail=$_POST["e-mail"];
     $age=$_POST["age"];


     $grade_insert_errors="";

     if ($account=="")
        $grade_insert_errors.="<br>account name isnt good.<BR>";

     if ($password=="")
        $grade_insert_errors.="password just isnt right.<BR>";

     if ($e_mail=="")
        $grade_insert_errors.="type a working e-mail plz.<BR>";

     if ($age=="")
        $grade_insert_errors.="age isnt good.<BR>";

     if ($grade_insert_errors=="")

     {

        $account=$account;
        $password=$password;
        $e_mail=$e_mail;
        $age=$age;

        $grade_insert_query="INSERT INTO ".$reg." (account".(($account!="")?",account":"")."".(($password!="")?",pass":"")."".(($e_mail!="")?",E-mail":"")."".(($age!="")?",age":"").")  VALUES (";
        $insert_query.=($account!="")?",'$account'":"";
        $insert_query.=($password!="")?",'$password'":"";
        $insert_query.=($e_mail!="")?",'$e-mail'":"";
        $insert_query.=($age!="")?",'$age'":"";
        $insert_query.=")";
        $result=@mysql_query ($grade_insert_query,$grade_con);

        if (mysql_affected_rows()==1)

        {
           echo "<BR><B><font color=orange>account made sucsesfully</font></B><BR>";

        }
        else

        {
           echo "<BR><br><B><font color=orange>account could not be made</font></B><BR>";
           unset($_POST["insert_button"]);

        }
     }
     else

     {
        echo "<BR><br><FONT color=\"#ffbc8c83\">".$grade_insert_errors."</FONT><BR>";
        unset($_POST["insert_button"]);

     }
  }
?>
i belive i have an error here :
Code:
$grade_insert_query="INSERT INTO ".$reg." (account".(($account!="")?",account":"")."".(($password!="")?",pass":"")."".(($e_mail!="")?",E-mail":"")."".(($age!="")?",age":"").")  VALUES (";
OR

Code:
$result=@mysql_query ($grade_insert_query,$grade_con);

if (mysql_affected_rows()==1)
how do i know it doesnt work ? it doesnt show me "account made sucssesfully"