2y2d
08-09-2007, 08:08 PM
i looked for this on the forum and did find one but i still dont see whats wrong with my own code, the code that ive written takes the users entered data and adds it to a sql database the data that the user gives is through a form and i have added data that goes along with the users data. well any way heres my code. Im kinda new to php coding but getting there lol
6. $db = mysql_select_db("MainT");
7.
8. $username = $_POST["myusername"];
9. $password = $_POST["mypassword"];
10. $email = $_POST["myemail"];
11. $D1 = $_POST["D1"];
12.
13.
14. $mysql_query INSERT INTO `MainT` VALUES
(\'\',\'$myusername\',\'$mypassword\',\'$mymail\',\'D1\',\'10000\',\'1\',\'0\',\'0\',\'0\',\'0\',\'0 \',\'0\',\'0\',\'0\',\'20\',\'5000\')';
15. echo "<font face='Verdana' size='2' color=green>Welcome, You have successfully signed up<br><br><a href=index.htm>Click here to login</a><br></font>";
16.
17. echo "Your name and password have been submitted into our database :)";
18.
19. ?>
My parse error is on line 14
6. $db = mysql_select_db("MainT");
7.
8. $username = $_POST["myusername"];
9. $password = $_POST["mypassword"];
10. $email = $_POST["myemail"];
11. $D1 = $_POST["D1"];
12.
13.
14. $mysql_query INSERT INTO `MainT` VALUES
(\'\',\'$myusername\',\'$mypassword\',\'$mymail\',\'D1\',\'10000\',\'1\',\'0\',\'0\',\'0\',\'0\',\'0 \',\'0\',\'0\',\'0\',\'20\',\'5000\')';
15. echo "<font face='Verdana' size='2' color=green>Welcome, You have successfully signed up<br><br><a href=index.htm>Click here to login</a><br></font>";
16.
17. echo "Your name and password have been submitted into our database :)";
18.
19. ?>
My parse error is on line 14