12-02-2007, 03:41 PM
|
#1 (permalink)
|
|
The Visitor
Join Date: Oct 2007
Posts: 4
Thanks: 1
|
Fetch array question
Suppose if there are two row match the following statement. Will fetch array syntax return the exact value or will decrease the value by 1 because they start from 0
$result = mysql_query("SELECT COUNT(*) AS numrows FROM MEMBERS WHERE interest = '$inte' AND age < $age") or mysql_error();
$row = mysql_fetch_array($result);
$number = $row[noofrows];
WILL IT BE 2 OR 1.
|
|
|
|