# AS2 to Database!

**URL:** <https://forum.kirupa.com/t/as2-to-database/322791>\
**Category:** flash\
**Created:** [June 3, 2011, 11:57am UTC](https://forum.kirupa.com/t/as2-to-database/322791 "2011-06-03T11:57:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [June 3, 2011, 11:57am UTC](https://forum.kirupa.com/t/as2-to-database/322791/1 "2011-06-03T11:57:39Z")

</div>

Hi there … what’s the best way to connect to my server from flash for it to retrieve data?

At the moment I have set up a loadvars … calling it to load my php file (which is where I call the commands to connect to my database, and echo a relevant row of data) …

However - all I get is flash loading my php file, as if it were just a text file, and not actually allowing it to execute the php on the server - OR maybe it does - but flash just reads it as text if i tell flash to put ‘this’ in a text field (this being the loadvars) …

Any simple advice - all tuts seem overly complicated, and try and pull in too much data at once with for loops etc - im just trying to ‘Connect’ …  
:red:
