# Flash and MySQL

**URL:** <https://forum.kirupa.com/t/flash-and-mysql/35021>\
**Category:** flash\
**Created:** [November 9, 2003, 2:06pm UTC](https://forum.kirupa.com/t/flash-and-mysql/35021 "2003-11-09T14:06:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scapegoat](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@Scapegoat](https://forum.kirupa.com/u/Scapegoat)\
**Post date:** [November 9, 2003, 2:06pm UTC](https://forum.kirupa.com/t/flash-and-mysql/35021/1 "2003-11-09T14:06:02Z")

</div>

Well call me stupid, but I’m new. Anyway, I was wondering if it is possible to use a MySQL database to get results and display them somewhere in my flash as text. And if it is possible how would I do it?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 9, 2003, 4:37pm UTC](https://forum.kirupa.com/t/flash-and-mysql/35021/2 "2003-11-09T16:37:16Z")

</div>

It definately is possible. You need a PHP script that connects with the MySQL database and prints the output like this:

&yourvar=This is your variable&asecondvar=This is your second variable&…

Then you can read from that PHP file using the loadVars object in Flash. Run a search in the Server Side/Scripting forum for MySQL and PHP. I asked the same question some time ago and the people here helped me out. So search for posts by Voetsjoeba in Serverside/scripting concerning MySQL Flash and PHP. 🙂

Welcome to the forums by the way 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 9, 2003, 4:44pm UTC](https://forum.kirupa.com/t/flash-and-mysql/35021/3 "2003-11-09T16:44:59Z")

</div>

Yes, welcome…  
post moved to appropriate category…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 9, 2003, 4:56pm UTC](https://forum.kirupa.com/t/flash-and-mysql/35021/4 "2003-11-09T16:56:27Z")

</div>

Ah right, Thanks for the help and the welcomes 🙂 Apologies for posting it in the wrong place, thanks for moving it too.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 10, 2003, 3:11pm UTC](https://forum.kirupa.com/t/flash-and-mysql/35021/5 "2003-11-10T15:11:08Z")

</div>

Is your question answered?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 15, 2003, 5:44pm UTC](https://forum.kirupa.com/t/flash-and-mysql/35021/6 "2003-11-15T17:44:38Z")

</div>

Yeah I think I get it now, I just really needed to know baisically how it was done 🙂
