# How to Use Flash with PHP and mySQL Question

**URL:** <https://forum.kirupa.com/t/how-to-use-flash-with-php-and-mysql-question/289235>\
**Category:** flash\
**Created:** [May 27, 2009, 8:25pm UTC](https://forum.kirupa.com/t/how-to-use-flash-with-php-and-mysql-question/289235 "2009-05-27T20:25:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shoalzolo](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@shoalzolo](https://forum.kirupa.com/u/shoalzolo)\
**Post date:** [May 27, 2009, 8:25pm UTC](https://forum.kirupa.com/t/how-to-use-flash-with-php-and-mysql-question/289235/1 "2009-05-27T20:25:20Z")

</div>

So I have attempted the tutorial and I think I pretty much crashed and burned. To view the tutorial go here:

[http://www.kirupa.com/developer/actionscript/flash\_php\_mysql.htm](http://www.kirupa.com/developer/actionscript/flash_php_mysql.htm)

So I did everything the tutorial says to do on page 1 and then when I try to access my website the following line prints out rather then my text:

FAIL (the browser should render some flash content, not this).

So I am kinda lost. I think my actionscript might be screwed up with the localhost because the test.php is located in my website directory so should the actionscript look like this?:

onClipEvent (load) {  
//assuming you have a personal web server and PHP installed locally  
loadVariables(“[http://www.mywebsite.com/test.php](http://www.mywebsite.com/test.php)”, this, “GET”);  
}

rather then

onClipEvent (load) {  
//assuming you have a personal web server and PHP installed locally  
loadVariables(“[http://localhost/test.php](http://localhost/test.php)”, this, “GET”);  
}

So this is my first time posting on kirupa so if this is posted in the wrong area someone just let me know i guess.

-Shoal Zolo
