|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Update Statement Not Working
Hi Coders,
someone help me...i have been running this query without success $query_register_session = "UPDATE members SET mem_sess ='$ayo_sess_id' , memIP ='$user_host' WHERE uname = '$UserName' "; $result_register_session = mysql_query($query_register_session); When i echo the query, i get what looks ok to me as shown below; UPDATE ayo_memberz SET mem_sess ='736eb2d9749650a9fd3fa66b4eb20bb4' , memIP ='192.168.0.1' WHERE uname = 'shalomdan' But when i check the database, the members table is not updating....please someone help. What am i not doing right? Thanks in advance. |
|
#2
|
|||
|
|||
|
RE: Update Statement Not Working
|
|
#3
|
|||
|
|||
|
RE: Update Statement Not Working
Thanks a million Nazly.
I had a space in my mysql field names before in the fields memIP and mem_sess...so i got the error column not found. Corrected and working fine. Thanks again. > Thread Solved |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > Update Statement Not Working |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|