RRVARMA
05-19-2008, 06:12 PM
Hi,
Please tell me how to find the total number of rows fetched my a query. I'm getting the rows from Teradata and not using MySql.
i tried with the following but in vain..
//$rows=odbc_num_rows($query);
//echo $rows;
//$rows= "SELECT count(*) as result FROM (".$query.")";
//echo $rows;
//$num_rows = mysql_num_rows($query);
//echo $num_rows;
$totrows=odbc_fetch_row($query);
echo $totrows;
//$totrows=ROW_COUNT($query);
//echo $totrows;
Please help..
Thanks,
RRVARMA
Please tell me how to find the total number of rows fetched my a query. I'm getting the rows from Teradata and not using MySql.
i tried with the following but in vain..
//$rows=odbc_num_rows($query);
//echo $rows;
//$rows= "SELECT count(*) as result FROM (".$query.")";
//echo $rows;
//$num_rows = mysql_num_rows($query);
//echo $num_rows;
$totrows=odbc_fetch_row($query);
echo $totrows;
//$totrows=ROW_COUNT($query);
//echo $totrows;
Please help..
Thanks,
RRVARMA