Mysql error in time to insert registration information
06:33 03 Jan 2016

This is my code to insert registration information

    $query = "INSERT INTO $tbl_name 
                  (idmembers,name,email,phone,
                   jn_dt,pan,pwd,
                   enroller_id,enrolled_id,tside) 
              VALUES ('$name', '$email', '$phone',
                      '$jn_dt', '$pan', '$pwd', 
                      '$enroller_id', '$enrolled_id', '$tside')";

    $data = mysql_query($query)or die(mysql_error());

    if($data) { 
         header("location:registration.php?sucessful=true");

} 

but I am getting the error "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'hjkoputrd', '123654', 'F' at line 16"... Please help me.. thanks in advance..

php mysql