Return Total Rows from a table.
- by theband
while($row=mysql_fetch_array($result))
{
$output .= "<Reports>";
$output .= "<ProjectName>";
$output .= $row['ProjectName'];
$output .= "</ProjectName>";
$output .= "<ProjectCount>";
$output .= $row=mysql_fetch_array($result)
$output .= "</ProjectCount>";
$output .= "</Reports>";
}
Can i return the number of rows in table like this, i am getting XML markup error.