View Single Post
Old 12-02-2007, 03:41 PM   #1 (permalink)
Blackbrain
The Visitor
 
Blackbrain's Avatar
 
Join Date: Oct 2007
Posts: 4
Thanks: 1
Blackbrain is on a distinguished road
Default 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.
Blackbrain is offline  
Reply With Quote