Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Data Model Questions /

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba

Creating a new member


Go to End
Reply


2 Posts   537 Views

Avatar
cachobong

Community Member, 9 Posts

25 April 2013 at 6:42pm

Is it possible to create/insert a new member in this manner?

$o_member = new Member();
				$a_data['Email'] = 'email@email.com';
				$a_data['Password'] = '123456';
				$a_data['FirstName'] = 'My FirstName';
				$o_member->update($a_data);

Avatar
Willr

Forum Moderator, 5517 Posts

3 May 2013 at 9:25pm

Yes. You can even do

$member = new Member();
$member->Email = "hi@email.com";
..
$member->write(); // saves to database.