• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Flash and PHP

New Here ,
May 09, 2008 May 09, 2008

Copy link to clipboard

Copied

Hi There

I was wondering if somebody could help me out.
I am a designer, and I have recently designed
my website entirely in flash.
I have downloaded a tutorial in which
I followed all instrutions to create a form in flash
which connects to a php script.
Now I have uploaded this php file to the server
with all my other files,
however, i know there is some other step like adding a mysql database.
I know that me free server which is lolhosting does support the use of php,
Now I dont know how to link my php file to this mysql,
Can somebody please explain to me how this can be done, or even I have
my straight.

Thanks

Ryan

South Africa
TOPICS
ActionScript

Views

634

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 09, 2008 May 09, 2008

Copy link to clipboard

Copied

If you have MySQL you will have to set up a database and user, either your
host can do that, or you will have a control panel where you can do it
yourself. Just depends on the host. Once you have that, you can make a
connection to your db using PHP with something like this:

$connection = mysql_connect("localhost", "user", "password");
mysql_select_db("databaseName", $connection);

And then you can query the db with:

$result = mysql_query("SELECT * FROM table", $connection);



--
Dave -

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 08, 2017 Jun 08, 2017

Copy link to clipboard

Copied

LATEST

Ryan , what kind of information are you passing betwen Flash & PHP? if its a simple contact form you may not need a MySQL DB at all. If your wanting to store info then yes you prob will need a DB.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines