Hello, if anybody is interested in my solution, i will put a very simple solution for my problem: Image may be NSFW.
Clik here to view.
[code]
//Add this query to discover the name(title) of the current album
$resultado = cpg_db_query("SELECT title, aid FROM {$CONFIG['TABLE_ALBUMS']} ...
Clik here to view.

[code]
//Add this query to discover the name(title) of the current album
$resultado = cpg_db_query("SELECT title, aid FROM {$CONFIG['TABLE_ALBUMS']} ...