Code: Select all
// Basic database query
function sql_query($query){
return mysql_query($query);
}
// Create new user
function make_user($verifid, $mail, $user, $fname, $lname, $country, $pass, $thetime, $yourip){
global $makeuser;
$query = 'INSERT INTO memuserlist (verifid, user_email, user, handle, firstname, lastname, country, user_password, register_date, last_ip, last_access) VALUES ('$verifid', '$mail', '$user', '$user', '$fname', '$lname', '$country', PASSWORD('$pass'), '$thetime', '$yourip', '$thetime')';
if(sql_query($query)){
return true;
}
else{
return false;
}
}Any help would be VERY greatly appreciated!
I tried to manually type the query in to the sql command line client replacing the $variables with the actual data i wanted but it still wouldn't work with no reason why.