Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Check if user exists Reply To: Check if user exists

#169211
chrisburton
Participant

@traq Actually, I forgot the syntax but looked at some old code of mine and remembered how to do it which is close to what you have.

My code:

db::update('users', array($user['name']=>'name',$user['image']=>'image',$user['link']=>'link'), array('uid' => $user['uid']));

Edit: Oops do I have it backwards?