parse error in php code

Posted by user225269 on Stack Overflow See other posts from Stack Overflow or by user225269
Published on 2010-01-17T09:10:43Z Indexed on 2010/05/22 10:20 UTC
Read the original article Hit count: 268

I just started php and I want to know how to make this parse error work. This is the error: Parse error: parse error in E:\wamp\www\PHP\create.php on line 22

And here is my code, by the way I'm making a database manipulating system. And I use wampserver and dreamweaver.

            <?php
          include 'E:\wamp\www\PHP\connection.php';

    $IDNUMBER = $_POST['ID'];
    $LNAME = $_POST['Lname'];
    $FNAME = $_POST['Fname'];
    $MNAME = $_POST['Mname'];
    $GRADEYR = $_POST['GradeYr'];
     $ADDRESS = $_POST['Address'];

      if(!$_POST['submit']) {
  echo "please fill out the form";
  header('Location: E:\wamp\www\PHP\main.php');
    } else {

   mysql_query = "INSERT INTO  students (`IDNUMBER`,`LNAME` ,`FNAME` ,`MNAME` ,`GRADEYR` ,`ADDRESS`)
                VALUES (NULL, '$IDNUMBER', '$LNAME', '$FNAME', '$MNAME', '$GRADEYR', '$ADDRESS')") or die(mysql_error());

                echo "User has been added!";
                header('E:\wamp\www\PHP\main.php');


             }

           ?>

Please help, I'm just a beginner in php.

© Stack Overflow or respective owner

Related posts about php

Related posts about dreamweaver