all groups > flash data integration > june 2006 >
You're in the

flash data integration

group:

LoadVars, PHP and mysql



LoadVars, PHP and mysql toft
6/22/2006 10:28:02 AM
flash data integration: Using LoadVars.send() I insert info into a mysql database. I then click a
button and
the updated db content is shown in a textfield. Problem is that a HTML file is
auto-opened in the browser.

When using LoadVars.sendAndLoad() I can still insert info into the database,
but I can NOT update the info
in the textfield. For some reason the "old" db content is loaded again.

Flash and PHP files are in same folder on server.

I dont have a clue on this one and would appreciate some help.

Oeyvind

Re: LoadVars, PHP and mysql Motion Maker
6/25/2006 12:20:11 PM
[quoted text, click to view]
If your server script is PHP and probably all severscripts, be sure they do
not send back whitespace outside of the scripting tags. White space includes
tabs, space bar, return keys.
[quoted text, click to view]
Once you have the serverscript returning to Flash and not generating a new
web page, this problem will probably be resolved barring hidden bugs you
have not yet seen.
--
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
[quoted text, click to view]

Re: LoadVars, PHP and mysql toft
6/25/2006 8:00:49 PM
Thanks Lon
The problem was solved by including session_create() - session_destroy() in my
PHP scripts.
Its still a mystery thou why type of as send method affects a totally
independent call to another PHP script
that loads the db info the Flash form.

Oeyvind
AddThis Social Bookmark Button