I wanted to arrange the array of table list with sort() function but i am getting same kind of warning
my code as follows :
<?PHP
require_once("lib/connection.php");
$result = mysql_query("SHOW TABLES FROM `st_db_1`");
sort($result);
foreach ($result as $result){
echo $result ;
}
?>
and the warning i am getting are :
Warning: sort() expects parameter 1 to be array, resource given in C:wampwwwCopy (4) of st_db_1est_2.php on line 9
Warning: Invalid argument supplied for foreach() in C:wampwwwCopy (4) of st_db_1est_2.php on line 10
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…