I am trying to list the tables in a database, I have the wrong
array index name I have tried
$row['Table']
$row['table'];
$row['Tables']
with no luck . I use a simliar script to list the databases on my server I used $row['Database'] instead and it worked so it has to be the name on the table version. can someone help.
script listed below
<?php
$connection = mysql_connect('localhost', "administrator","bulls23") or die(mysql_error());
$dbname = $_GET['db'];
$table_result= mysql_list_tables($dbname)or die(mysql_error());
while($row=mysql_fetch_array($table_result)){
echo '<input type="radio" name="tblnames" value="'.$row['Table'].'" onClick="self.location.href = \'info.htm?table='.$row['Table'].'\'">'.$row['Table'].'<br>';
}
?>