Dieneces
02-26-2009, 06:52 AM
Hello guys,
I'm having trouble understanding how to update my table. Well... Im having trouble in using the where clause of update.
Is it possible to do something like this:
UPDATE player SET var1='10' where Nome=$_SESSION['Name']
I know that session can't be used that way.... but I would like to update the database in the user logged in row...
What is the best way to achive this? I'm now trying to understand the session_ID and stuff like that...
Many thanks in advance,
I'm having trouble understanding how to update my table. Well... Im having trouble in using the where clause of update.
Is it possible to do something like this:
UPDATE player SET var1='10' where Nome=$_SESSION['Name']
I know that session can't be used that way.... but I would like to update the database in the user logged in row...
What is the best way to achive this? I'm now trying to understand the session_ID and stuff like that...
Many thanks in advance,