Hello.
I'm trying to process form data into a mysql database.
The error I'm getting is:
Parse error: syntax error, unexpected $end in /home/richardj/public_html/gametest/register.php on line 61
Here is the code I'm trying to process the form data through:
CODE
<html>
<head>
<title>test page</title>
</head>
<body>
<div>
<?php
include "database.connect.php";
$user_name =$POST_['name'];
$password=$POST_['password'];
$affiliation=$POST_['affiliation'];
$admin='N';
$subscription='N';
$beta_test='N';
$email='none';
$user_id='rijoieoe';
$points=0;
$wins=0;
$losses=0;
$rank='Ensign';
$query = "INSERT INTO users (
`user_name` ,
`password` ,
`affiliation` ,
`admin` ,
`subscription` ,
`beta_test` ,
`email` ,
`user_id` ,
`points` ,
`wins` ,
`losses` ,
`rank`
)
VALUES (
'$user_name',
'$password',
'$affiliation',
'$admin',
'$subscription',
'$beta_test',
'$email',
'$user_id',
'$points',
'$wins',
'$losses',
'$rank'
);
if ($mysqli->query($query)){
}
?>
I'm only feeding 3 pieces in at this point and setting the rest.
I'm not sure why I'm getting the error. Does anyone see something obvious I'm just over looking?
Thanks!
Rich