K, I am new at this, actually really new I just started yesterday, but i think that i might have found what you have done wrong. the mysql_connect command only connects PHP to a MySQL server, not to the database. so in order to get the Database "ram" you should try this.
$mysql_server = mysql_connect("NAME OF MYSQL SERVER");
$mysql_select_db("RAM", $mysql_server);
$tb_list = mysql_list_tables(mysql_select_db);
$i = 0;
$cnt = mysql_num_rows($tb_list);
while ($i < $cnt) {
echo mysql_tablename($tb_list, $i) . "\n";
$i++;
}
mysql_close($db);
This should work, i have not been able to test it because i cannot get either PHP or MySQL to work on my Win2k system, i have tried it with different software and it never seems to grab it.
I am probebly totally off, but i am just trying to help, remember, this is only my 2nd day playing with PHP and MySQL.