Hi Guys
Please help, i have tried to code this and keep getting
Parse error: parse error, unexpected T_VARIABLE, expecting ',' or ';' in /home/httpd/vhosts/xxxxx.com/httpdocs/php/users/reg.php on line 160
it happens with this code
please help,....
pete
Please help, i have tried to code this and keep getting
Parse error: parse error, unexpected T_VARIABLE, expecting ',' or ';' in /home/httpd/vhosts/xxxxx.com/httpdocs/php/users/reg.php on line 160
it happens with this code
PHP Code:
function addNewUser($title, $f_name, $surname, $address1, $address2, $towncity, $countystate, $zippostcode, $country, $telnum, $mobnum, $faxnum, $email, $username, $password){
global $conn
$q = "INSERT INTO users VALUES('$title', '$f_name', '$surname', '$address1', '$address2', '$towncity', '$countystate', '$zippostcode', '$country', '$telnum', '$mobnum', '$faxnum', '$email', '$username')";
$q1 = "INSERT INTO user_id VALUES('$username', '$password', '$email', '0', '0', '$f_name')";
return mysql_query($q,$conn);
return mysql_query($q1,$conn);
}
pete
Comment