Hello people, I'm developing a php program that retrives and displays information form a SQL 2000 database given a parameter. I'm using the microsoft SQL server functions. before displaying the data, I have the following code that tells me the number of records that were found.
echo "<h2>" . $numrows . " Record" . ($numrows == 1 ? "" : "s") . " Found: </h2>";
if 4 records were found,the above code displays something like "4 Records found"
The problem is the number of records displayed is one less the number of records found. Like in the above example where four records are found, only 3 records are displayed. That means if only one record was found, it's not displayed. what could be the problem?
NB: Since I'm using stored procedures, I've tested them on the database and verified that if it's four records, it's really four records that exist in the database.
Thanks in advance.