how to get the row number of a sql query statement in php
I am trying to get the value of rows depending on the sql select statement and the criteria.

Here is the code im using:

    $fund = "SELECT COUNT(fundtid) from fund where fundtid='1'";
    $result = mysql_query($fund, $connection);
    if(!$result) {
    die(mysql_error());
    }
    $row = mysql_fetch_row($result); 
 
    print_r($row);

and it prints me this "Array ( [0] => 0 )" 
how to get the row number of a sql query statement in php
===

I am trying to get the value of rows depending on the sql select statement and the criteria.

Here is the code im using:

    $fund = "SELECT COUNT(fundtid) from fund where fundtid='1'";
    $result = mysql_query($fund, $connection);
    if(!$result) {
    die(mysql_error());
    }
    $row = mysql_fetch_row($result); 
 
    print_r($row);

and it prints me this "Array ( [0] => 0 )" 