此代碼應返回包含WAMP服務器數據的數組,其中包含關於追隨者的一些條目的WAMP服務器的數據。不幸的是,它沒有。請幫忙嗎?PHP未到達函數
<?php
include('ConnectionManager.php');
function getfollowers()
{
print "check";
//String query
$query="SELECT * FROM `followers` order by 'followerid'";
//execute query
$result=mysql_query($query);
//3mel array isma followers
$followers=array();
//jeeb number of rows
if(mysql_num_rows($result))
{
while($followers=mysql_fetch_assoc($result))
{
$followers[]=$followers;
}
return $followers;
}
}
?>
爲什麼不正確地縮進代碼?特別是如果你期望在它的錯誤? – hek2mgl
對不起,我對PHP很陌生,我認爲它是一個很容易理解的小代碼。 – user3476925