PHP , Mysql how would I edit a specific table?

Josh

New member
I have a forum, i'd like the user's to edit their motto. (Just for now later on user picture.)
So I have the primart key as their user id. In a table called users.
So it'd be users.user_id . signin_status['user_id'] .user_motto... Somthing along those lines?
But I can't find a simple way to do this. I want it to be edited by a form method POST.
But it has to be able to re-write this in the future.
I know this is confusing i'm sure someone has an answer though.
@Ratchet

Well, it's going to check the users current sign in to edit the motto.
So they shouldn't in theory edit anyones but their own.
Well heres what i'm trying to do, i'm trying to edit a table entry.
like users.user_id(their sign in status user_id) (user_motto)
But I can't do this your way would work if I wanted to edit everyones motto, which will be useful if they never supply a motto.
Nevermind hold on let me actually try it I didn't look at the WHERE part until now.
 
Back
Top