Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-25-2009, 02:13 AM   #1
slimpickinz
Registered User
 
Join Date: Jun 2008
Posts: 13
Default Flash to PHP to Mysql & Back Again

I need some help getting my Flash based form to MySQL database. I can get the fields necessary from Flash to PHP, (as I normally send an email with this data) and I have figured out how to parse the (manually created) database as XML back to Flash.
I am just stuck in the middle.
Please help, as this project is nearing deadline.
I can post examples if necessary.

-SlimP
slimpickinz is offline   Reply With Quote
Old 08-25-2009, 07:20 PM   #2
sam.uk.net
Master of Fail
 
sam.uk.net's Avatar
 
Join Date: Jul 2009
Location: Chair?
Posts: 192
Send a message via MSN to sam.uk.net
Thumbs up

Hey there...

I'm not quite sure of your problem...are you having trouble using flash to call a PHP script?

or are you having trouble using PHP to send back to a flash script?

Are you using AS2 or AS3?

sam.uk.net
__________________
Need feedback on my website (just had a makeover!): http://www.sam.uk.net

Free games!- sign up if you have the time

kkbbcute: Computing legend
sam.uk.net is offline   Reply With Quote
Old 08-26-2009, 12:09 AM   #3
slimpickinz
Registered User
 
Join Date: Jun 2008
Posts: 13
Default Trouble

I am having trouble using PHP that is taking data from my swf and send it to MySQL database. The database is already set up and I can create fields etc. manually using phpMyAdmin.
I have successfully connected to the database with the PHP. I just need a shove in the right direction (a good example or two always helps me get to where I am going.)
slimpickinz is offline   Reply With Quote
Old 08-26-2009, 10:10 AM   #4
sam.uk.net
Master of Fail
 
sam.uk.net's Avatar
 
Join Date: Jul 2009
Location: Chair?
Posts: 192
Send a message via MSN to sam.uk.net
Arrow

Quote:
I am having trouble using PHP that is taking data from my swf

my first quote! w00t!

The PHP doesn't take data from the swf on its own. You need your swf to call the PHP script and send GET variables to it. Then use your PHP script to use those GET variables:

PHP Code:
$myVariable=$_GET['varFromFlash']; 
and do whatever needs to be done with that information.

Good luck and sorry if I'm not too clear

sam.uk.net


__________________
Need feedback on my website (just had a makeover!): http://www.sam.uk.net

Free games!- sign up if you have the time

kkbbcute: Computing legend
sam.uk.net is offline   Reply With Quote
Old 08-26-2009, 10:29 AM   #5
slimpickinz
Registered User
 
Join Date: Jun 2008
Posts: 13
Default Wow

thanks for sharing!

I think I may be the one who is not clear.
I can get the data from my swf using the PHP.
I have successfully set up a swf/PHP email form.
Also have success setting up a login form.
Maybe just need to modify that to get what I need.

Here is what is going on.
I have this swf... http://gnfl.net/archive/08/picks.html
This is a weekly event.
I have multiple users logging in.
Their selections get emailed to them and admin (myself).
From there, I have to enter their selections manually in spreadsheet for calculation.
I want each users input (selections) to go to the database, where I can then successfully parse the XML to Excel and do the calcs automatically.
I got the last part (MySQL to XML) to work using gotoAndLearn tutorial.

Last edited by slimpickinz; 08-26-2009 at 04:00 PM. Reason: corrected web address
slimpickinz is offline   Reply With Quote
Old 08-27-2009, 10:45 AM   #6
sam.uk.net
Master of Fail
 
sam.uk.net's Avatar
 
Join Date: Jul 2009
Location: Chair?
Posts: 192
Send a message via MSN to sam.uk.net
Question

Hi again...

Sorry I must be missing something...I still can't see what your problem is. What bit is not working?

Quote:
Maybe just need to modify that to get what I need.
Don't you already have what you need?

sam.uk.net
__________________
Need feedback on my website (just had a makeover!): http://www.sam.uk.net

Free games!- sign up if you have the time

kkbbcute: Computing legend
sam.uk.net is offline   Reply With Quote
Old 04-20-2010, 12:59 PM   #7
billyzim
Registered User
 
Join Date: Apr 2010
Posts: 2
Default

You need to know php and mysql. Try to use php tutorials.
billyzim is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:41 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.