Ottimo! Grazie Mille.
Però come posso usare ciò qui, dato che il a me te da errore:
Codice PHP:
/* -- Recupero Album Personalizzati -- */
$query = "SELECT album FROM $username WHERE album_id = '1'";
$risultato = mysql_query($query, $conn_host_user) or die (mysql_error());
/* -- Link Album Personalizzati -- */
$album[] = array();
while($estraialbum = mysql_fetch_array($risultato))
{
$album[] = $estraialbum;
}
foreach($album as $key => $valore)
{
$query = "SELECT * FROM $username" . "_" . $valore;
$risultato = mysql_query($query, $conn_host_album) or die (mysql_error());
$estrai = mysql_fetch_array($risultato);
$nickname = $estrai['username'];
if (!empty($nickname))
{
$folder.= ' | [url="http://www.sito.net/my_profile.php?album=' . $valore . '"]' . $valore . '[/url]';
}
}
P.S.: L'errore è tabella insesistente perchè non c'è nulla nel $valore della $query.