# Hello Im mseerob. I have a php, mysql and flash question

**URL:** <https://forum.kirupa.com/t/hello-im-mseerob-i-have-a-php-mysql-and-flash-question/177326>\
**Category:** Uncategorized\
**Created:** [February 1, 2006, 1:25am UTC](https://forum.kirupa.com/t/hello-im-mseerob-i-have-a-php-mysql-and-flash-question/177326 "2006-02-01T01:25:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mseerob](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@mseerob](https://forum.kirupa.com/u/mseerob)\
**Post date:** [February 1, 2006, 1:25am UTC](https://forum.kirupa.com/t/hello-im-mseerob-i-have-a-php-mysql-and-flash-question/177326/1 "2006-02-01T01:25:01Z")

</div>

hello I am mseerob and I got a question…

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

I would like to say that this tutorial is very interesting to read but I was in fact having problems with this. I’ll explain what I have done…

I already have apache server installed so that is not a problem. Now in my php page I have named it test.php. In the php page I added the following code.

\<?php  
//The value of $x would be printed to the screen but the SWF would not read the data  
$x = “abc”;  
print $x;

//The value of $x would be printed to the screen and because of the prefix ‘myVar=’, the SWF will //interpret this as being the intended value for the variable myVar in the SWF  
print “myVar=$x”;  
?\>

Just like the coding that was putted in the tutorial. After that I made a new flash file and named it test.swf as well and saved it in the same folder as the test.php. Now in the flash file, I made a dynamic text field and named the variable ‘myVar’ (Didnt put the quotes in) Then I added the same exact code stated in the tutorial and it didnt work at all. In the textfield movie clip I added the following code…

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

Then I went into my folder and opened up the test.swf file and it didnt work. I was wondering if there was a file that I could download cause perhaps there is something that I am missing. If anyone can reply back I would really appreciate it a lot. Thank you very much
