A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Best way to connect to mysql database

  1. #1
    Senior Member Boombanguk's Avatar
    Join Date
    Jun 2000
    Posts
    1,194

    Best way to connect to mysql database

    Hi,

    I'm in the middle of creating a Flash game that will need to use a mysql database and I need to know which is the best way to get and put data to that database from Flash.

    From what I've seen online the way to do this is to either..

    1) Use amfphp
    2) Use something called phpobject
    3) Just do it manually with a bit of php code
    4) There's an component I bought/downloaded some time ago, from "P studios" ?? I can't find them anymore online, but I think it allows you to setup the php from inside Flash??

    So my questions are, of all of the above, what's a) The fastest (in the sense of data to and from the server) of the above? b) Easiest to use? c) Most secure?

    thanks for any help.
    FlashGameMaker.com - er..where I say stuff.

  2. #2
    Bearded (M|G)od MyFriendIsATaco's Avatar
    Join Date
    Dec 2002
    Location
    Awesomeville.
    Posts
    3,045
    Just use manual PHP code. If it's basic stuff, MySQL is easy. mysql_connect, mysql_select_db, mysql_query, mysql_result, and mysql_fetch_*. That's it. It'll be the fastest way to do something and probably easier than the learning curve for anything else.

  3. #3
    Senior Member Boombanguk's Avatar
    Join Date
    Jun 2000
    Posts
    1,194
    Quote Originally Posted by MyFriendIsATaco View Post
    Just use manual PHP code. If it's basic stuff, MySQL is easy. mysql_connect, mysql_select_db, mysql_query, mysql_result, and mysql_fetch_*. That's it. It'll be the fastest way to do something and probably easier than the learning curve for anything else.
    Is that secure though? If I used amfPHP or something similar wouldn't that give me security built in?
    FlashGameMaker.com - er..where I say stuff.

  4. #4
    Bearded (M|G)od MyFriendIsATaco's Avatar
    Join Date
    Dec 2002
    Location
    Awesomeville.
    Posts
    3,045
    Well, it depends on what you're doing. Explain the situation a bit more.

  5. #5
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    in case that funky component sends either database connection data or sql statements from flash to the server, get rid of it - that behavior IS a SEVERE risk

    Musicman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center