CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   MySQL (http://www.codingforums.com/forumdisplay.php?f=7)
-   -   updating fields (http://www.codingforums.com/showthread.php?t=5951)

Nightfire 09-11-2002 12:39 AM

updating fields
 
How can I update various fields at once? I tried

UPDATE members SET bio='$bio',chat='$chat' WHERE username='$username'"

but it doesn't seem to update the chat field for some reason

I'm using php

Nightfire 09-11-2002 01:32 AM

Nevermind, realised what I did wrong :o Forgot to update the page which shows the results

Today isn't my day for coding

Spookster 09-11-2002 01:32 AM

Well from what you posted there is nothing wrong with your SQL statement.

Are you sure that $chat actually has a value? Have you tried echoing it out to the document?

Nightfire 09-11-2002 02:24 AM

LOL I forgot to upload the results page. Doesn't matter anymore, it works :)


All times are GMT +1. The time now is 09:17 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.