ivannovak / jpmaster77-s-Login-System-

jpmaster77's Login System v2.0.4d
http://www.evolt.org/node/60384
Other
42 stars 28 forks source link

Proposed change to addNewUser in database.php #19

Open jamesloh opened 10 years ago

jamesloh commented 10 years ago

By specifying the field list, it makes it easier to add additional fields to the users table and still have it working.

  $q = sprintf("INSERT INTO ".TBL_USERS." (username,password,userid,userlevel,email,timestamp,valid,name,hash,hash_generated) VALUES ('%s', '%s', '%s', '%s', '%s', $time, '0', '%s', '0', '0')",