Hi, I can't believe I've had to resort asking for support on this but I don't know what's wrong. Here's the php code. Every time I get the value 1 printed out although in my table I have records with id's of 8, 9 etc. I'd be greatful for your help.
$query = mysql_query("SELECT id FROM $table_bdb_albums ORDER BY id DESC LIMIT 0, 1"
;
$nb = mysql_fetch_array($query, 0);
$filename = $nb[id] + 1;
echo $filename;
$query = mysql_query("SELECT id FROM $table_bdb_albums ORDER BY id DESC LIMIT 0, 1"

$nb = mysql_fetch_array($query, 0);
$filename = $nb[id] + 1;
echo $filename;