Difference between revisions of "User save"

From Catglobe Wiki
Jump to: navigation, search
(jrfconvert import)
 
Line 1: Line 1:
[[Category:HelpBooks]]
+
[[Category:User_Functions]]
 

 

  

Revision as of 11:38, 23 March 2011



User_save

Save a user object to the database

Syntax

User_save(userObject)

Arguments

  • userObject: is an array. It is a user array, which has the same format as what created by User_new function

Return value

empty

Example

array user = User_new("sebastianohara", "abcd1234", 16613035);

user[USER_PHONE_NUMBER] = {{PhoneNumber_Type_Home1, "0703822745", 84}, {PhoneNumber_Type_Mobile1, "0903353758", 84}};

user[USER_LANGUAGE] = "en-GB";

user[USER_TIMEZONE] = Timezone_SE_Asia_Standard_Time;

User_save(user);

Availability

Version 5.6