# Now i'm pulling info out of the database using flash

**URL:** <https://forum.kirupa.com/t/now-im-pulling-info-out-of-the-database-using-flash/71671>\
**Category:** Uncategorized\
**Created:** [November 28, 2004, 4:22am UTC](https://forum.kirupa.com/t/now-im-pulling-info-out-of-the-database-using-flash/71671 "2004-11-28T04:22:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mprzybylski](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mprzybylski/32/613_2.png) [@mprzybylski](https://forum.kirupa.com/u/mprzybylski)\
**Post date:** [November 28, 2004, 4:22am UTC](https://forum.kirupa.com/t/now-im-pulling-info-out-of-the-database-using-flash/71671/1 "2004-11-28T04:22:46Z")

</div>

ok, so i got the info all in the database and then i have a php page that goes and retrieves the id that the e-mail sent through. here is my code on the load.php page so far:

```php
<?php
//database connect
require_once("connect.php");

$result = mysql_query(" SELECT * FROM ecard WHERE card = '$card'");

echo $card;

?> 

```

so now i’ve got all the records of value $card (lets say 8 for this instance) pulled into this php page, how would i go about loading them into flash with loadVars()? for the record names, i used this line to originally insert them:

```php
$result = mysql_query("INSERT into ecard (fname, femail, tname, temail, message) values ('$fromName', '$fromEmail', '$toName', '$toEmail', '$message')");

```

thanks again everyone, i love you all (and especially that special someone who answers this :P)!
