Code:
//Function to sanitize values received from the form. Prevents SQL injection
function clean($str) {
$str = @trim($str);
if(get_magic_quotes_gpc()) {
$str = stripslashes($str);
}
return mysql_real_escape_string($str);
};
//Sanitize the POST values
$fname = clean($_POST['fname']); // ROW 36 <=========================================
$lname = clean($_POST['lname']);
$login = clean($_POST['login']);
$password = clean($_POST['password']);
$cpassword = clean($_POST['cpassword']);
Parse error: syntax error, unexpected T_STRING on row 36
HELP!!!
Comment