A parse error, unexpected T_STRING....what?
Posted: Fri Jun 14, 2002 4:24 pm
Hi!
Have som problems with mysql_query()
The code is:
and the errormsg is:
Parse error: parse error, unexpected T_STRING in C:\Program\Apache Group\Apache2\htdocs\Doom_hell_on_net\register.php on line 13
Hope that you can help me!
XepheX
Have som problems with mysql_query()
The code is:
Code: Select all
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<?PHP
/*Öppna databasen*/
$open = mysql_connect("localhost","*****","*****");
mysql_select_db ("doom")
mysql_query ("INSERT INTO members (un, pw, email) VALUES ('".$_POSTї"un"]."', '".$_POSTї"pw"]."', '".$_POSTї"email"]."')");
mysql_close ($open); {
print "Thanks for register";
}
?>
<body topmargin="40" leftmargin="100">
<h2>So you wanna be a member?</h2>
<P>
Just fill put the forms below, and then, Have fun!
<p>
<table border="0" cellspacing="0" cellpadding="5" class="field">
<form action="register.php" method="post">
<tr>
<td>Username:</td>
<td><input type="text" name="un" size="16" maxlength="16" class="box"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="text" name="pw" size="16" maxlength="16" class="box"></td>
</tr>
<tr>
<td>E-mail:</td>
<td><input type="text" name="email" size="16" maxlength="64" class="box"></td>
</tr>
<tr>
<td> </td>
<td align="left"><input type="submit" value="submit" class="field"></td>
</tr>
</table>
</form>
<p>
All fields are required!<br />
Note! the e-mail is only if you lost you´re password. No other things will be sent.
</body>
</html>Parse error: parse error, unexpected T_STRING in C:\Program\Apache Group\Apache2\htdocs\Doom_hell_on_net\register.php on line 13
Hope that you can help me!
XepheX