Flash and MySQL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
monkeyj
Forum Commoner
Posts: 82
Joined: Mon Dec 15, 2003 4:32 pm
Location: USA
Contact:

Flash and MySQL

Post by monkeyj »

Is there anyway to connect to a database through Flash...

I only wanna do some basic.. delete from a table entry.. and add to it...

to do things with games and stuff for my site...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Although I'm unsure of the details, I know it's possible by issuing page requests through Flash..
User avatar
monkeyj
Forum Commoner
Posts: 82
Joined: Mon Dec 15, 2003 4:32 pm
Location: USA
Contact:

Post by monkeyj »

But, issuing the PAGE with the PHP? or acctually running it IN flash?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

running it all in flash, having flash issue the requests, and display the data..
User avatar
monkeyj
Forum Commoner
Posts: 82
Joined: Mon Dec 15, 2003 4:32 pm
Location: USA
Contact:

HmMmm

Post by monkeyj »

Too bad I'm new to that whole thing.. lol

Otherwise I'd try finding it in flash-db.com or something...

:-/

Does Flash actually CONNECT to the mysql, or do u need flash to call up some php file on a server, then that calls the mysql, and then flash can interpret it...?

Hmmm...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I'd guess that flash can only call the php file..
jtc970
Forum Commoner
Posts: 38
Joined: Sun Jan 18, 2004 11:49 pm

Post by jtc970 »

I just had to do this
I used actionscript

Code: Select all

this.loadVariables("http://www.mysite.com/doit.php",'POST');
flash sends some variables via POST then doit.php does the database functions based on those and echos out the result like
status=done
Post Reply