avo Posted April 3, 2006 Share Posted April 3, 2006 Hi All Ive been pulling my hair out with this one i can't see for the life of me why im getting this error can you please help me our .thanks in advance error im getting is:-Parse error: parse error, unexpected T_IF in htdocs/admin/newuser.php on line 79[code] require ("../inc/config.php"); $username = sanitize_variable($_REQUEST['username']); $password = sanitize_variable($_REQUEST['password']); if($user_password_function == 1) { $query = "INSERT INTO USERS(userName,userPassword,userStatus) values('$username',password('$password'),1)"; } else { $query = "INSERT INTO USERS(userName,userPassword,userStatus) values('$username',md5('$password'),1)"; } db_query($query,$con); $err = db_error_log() if($err == '') { $userid = db_insert_id('users_userid_seq'); $email = sanitize_variable($_REQUEST['email']); $query = "INSERT INTO userProfile(userEmail, userId) VALUES('$email', $userid)"; db_query($query); $err = db_error_log(); if($err == '') { err_message('Account created.'); require("signup.txt");[/code]It says Line 79 thats this line:-[code] $err = db_error_log() if($err == '') { [/code][code]if($err == '') [/code]Thanks again . Quote Link to comment Share on other sites More sharing options...
Honoré Posted April 3, 2006 Share Posted April 3, 2006 replace[code] $err = db_error_log() if($err == '') { [/code]with[code] $err = db_error_log(); if($err == '') { [/code]; added after $err = db_error_log() Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.