Array in PHP does not work
<p>I am trying to add array data from mysql. But only the last row details are getting added. I tried array_push also but did not work. Can any one help</p>

<pre><code>$sql="SELECT * FROM server_details";
$result=mysqli_query($dbC,  $sql);
while ($row = mysqli_fetch_array($result))
{
$services=array( 
    $row['server_name'] =&gt; array($row['server_add'] =&gt; $row['port'])
); 
}   
</code></pre>
