Basic questions

Hi there,
just started learning php and mySQL.



<?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