Return Total Rows from a table.

Posted by theband on Stack Overflow See other posts from Stack Overflow or by theband
Published on 2010-04-22T10:11:20Z Indexed on 2010/04/22 10:13 UTC
Read the original article Hit count: 118

Filed under:
|
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.

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql