I got some problems with PHP and MySQL. Im trying to get a integer variable from MySQL count. Here is my code :
    $question="SELECT COUNT(*) AS num FROM Friends";
    $result=mysqli_query($link,$question);
    $row=mysqli_fetch_assoc($link,$result);
    $how_many=$row['num'];
    $how_many=(int)$how_many;
    $how_many=$how_many+1;
    echo $how_many;
And as a result i always get a 1 or it can't be showed. Please guys help i will be very gratefull.
