// mysql info
include('config.php');
// How to parse count or other results from a query in php?
$sql = "SELECT * FROM test-table WHERE username LIKE '%test%'";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query database', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
From $row, how can I get a total number of a rows (count) from a query?
2006-09-24
21:37:30
·
3 answers
·
asked by
only4u
1
in
Computers & Internet
➔ Programming & Design