Here is the function I got:
function update_user_information($aUserId, $aName, $aPassword)
If I would like to update one more attribute, I need to do something like this:
function update_user_information($aUserId, $aName, $aPassword, $aEmail)
If the user table keep extend, my function will always change, how to make it simpler for future update? Thank you.
I would create a Bean in a java style.
this way I think is more appropriate way to keep the logic simple.
see bellow how to use it
this way you can add more functionality like insert(), clone(), sendMailToUser() without the need to handle the parameters again and again in each function.