( ! ) Parse error: syntax error, unexpected ';' in C:\wamp\www\process-6.php on line 18 (the select from line)
Its a simple code, Name comes from a posted form field, user-name is the field name in the table.
Clearly simple but not simple enough for me. Any help gratefully appreciated.
Code: Select all
mysql_select_db($database) or die("Error connecting to database: ".mysql_error());
$username = $_POST['Name'];
$query = ("SELECT * FROM Users WHERE User-Name = '$username'";