I am using this code to show list of tables to the database i am connected to but I cant place them in a string. What i would like to happen is to get the list of tables from the database and store them in a string
$result = mysql_query("show tables"); // run the query and assign the result to $result
while($table = mysql_fetch_array($result)) { // go through each row that was returned in $result
if ($table) {
$aw = array();
$count= 0;
$aw[$count] = $table[0];
echo $string = array($aw[$count]);
$count++;
}
}