View Full Version : edit MYSQL fields in FLASH?

01-13-2010, 03:50 PM
i am using flash to use php to post data to mysql fields,
(eg. there is a textbox in flash , i type in "jolly1887" and press the submit button , it will post "jolly1887" under mysql's username field)

flash call php to insert code into mysql

INSERT INTO entries (user_name)
VALUES ('" . $_POST['username'] . "'')";

right now i am stucked , i am able to display the username into flash, able to post to mysql , but how am i going to
do a editor or an edit button in flash to overwrite the mysql fields?
(eg. if i type "jolly1887" in the username textbox , and "abcdefg" in the comment textbox, it will then replace "jolly1887" and the comment in mysql)

tried very hard to explain what i am going to do, i didnt get a good sleep by doing this.
anybody knows how?

01-13-2010, 04:43 PM
Do you have separate fields in the mysql database?

01-13-2010, 05:10 PM
seperate fields? it look like this


01-13-2010, 09:07 PM
Ok do you want to replace the same line in the mysql field? Like look at your line 3.

Do you want to change that to something new in the flash? that is what it seems like you are asking, unless you can clear it up.

Or are you asking how to change all of the fields with one submit button?