# Basic questions

**URL:** <https://forum.kirupa.com/t/basic-questions/106958>\
**Category:** Uncategorized\
**Created:** [April 10, 2004, 6:57pm UTC](https://forum.kirupa.com/t/basic-questions/106958 "2004-04-10T18:57:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flaxcreatures](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/flaxcreatures/32/448_2.png) [@flaxcreatures](https://forum.kirupa.com/u/flaxcreatures)\
**Post date:** [April 10, 2004, 6:57pm UTC](https://forum.kirupa.com/t/basic-questions/106958/1 "2004-04-10T18:57:58Z")

</div>

Hi there,  
just started learning php and mySQL.

```php

<?php

$database_server = mysql_connect("localhost", "user", "pass") or die("no connection possible");
mysql_select_db("flaxcrea_flash", $database_server) or die ("can't open");

$sql = "SELECT * FROM files"; 
$resultaat = mysql_query($sql) or die("error");
$nameArr = array ();
$descArr = array ();
while ($row = mysql_fetch_assoc($resultaat)) 
{ 
array_push($nameArr, $row['filename']);
array_push($descArr, $row['description']);
} 

$desc=$_POST['$descArr'];
$name=$_POST['$nameArr'];
$test = "Vars zijn geladen"

//print($descArr);
//print($nameArr);

mysql_close($database_server); 
?> 

```

This is what I’ve in php & MySQL, it goes great uptill here:

I’m still looking how to use array’s in php, I can already join strings into an array, but how do you transfer the whole array to flash cause that’s what I want to do.

Parsing something to flash is my second problem.  
is this right?: $desc=$\_POST[’$descArr’];  
And how to load it in flash again, do I’ve to use loadVariableNum(“phpfile.php”, 0, “GET”)  
so if I load the php with ($desc=$\_POST[’$descArr’], …)  
the var desc in flash would be the $descArr???

Please help me out
