I keep getting this error:
Parse error: parse error, unexpected T_VARIABLE in <my file> on line 13
this is the block of code its erroring on.
line 13 is the "$query =" line
@mysql_select_db("glofkinator");
$passwd = md5($POST['pass']);
$query = "INSERT INTO users (uname, pass) VALUES('$POST[name]','$passwd')";
mysql_query($query);
its not a missing semicolon, and I know that the variable it errors on is the $passwd one, but I can print out $passwd without the $query line there so its not just a null/non-existant variable
any help would be much appreciated.