andr3a ho riscritto il codice secondo i tuoi suggerimenti. adesso è così.

<?php
include("../config.php");

$db = mysql_connect($db_host,$db_user,$db_pass
);
mysql_select_db($db_name, $db);
$query = "SELECT * FROM portfolio order by id DESC";
$result = mysql_query ($query, $db);
$total = mysql_num_rows($result);
$i = 0;
$output = "";
while ($row = mysql_fetch_array($result)) {
$i = $i+1;
$output .= "&titolo".$i."=".$row["titolo"];
$output .= "&descrizione".$i."=".$row["descrizione"];
$output .= "&url".$i."=".$row["url"];
$output .= "&immagineuno".$i."=".$row["immagine1"];
$output .= "&immaginedue".$i."=".$row["immagine2"];
}
$output .= "&status=OK.";



echo $output;
?>
però quando faccio il loadMovieNum del file .php
e assegno ad esempio al campo di testo dinamico la variabile titolo1 esso resta sempre vuoto, anche se non capisco perchè.
se provo a copiare manulamente il testo che mi stampa il file php in un file .txt e a far caricare come variabili quello tutto ok, ma direttamente dal file php nada.

dov'è che sbaglio?

grazie ancora

ciao