how can i find number of rows in a table using MS Access and
php?
i used odbc_num_rows($query); but it returned -1.



how can i find number of rows in a table using MS Access and php? i used odbc_num_rows($query); bu..

Answer / amitverma

The function odbc_num_rows() returns -1 only if there's
some sort of error, whether it be improper db connection or
improper SQL query. So first check/validate these issues
using if conditions in PHP. I think it must solve your
problem.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

How do you run a php script from the command line?

1 Answers  


What is mod_php?

0 Answers  


What is sorting php?

0 Answers  


What is file upload?

0 Answers  


how many types of inheritance is there in php? name there?

10 Answers  


What is the difference between the functions UNLINK and UNSET?

8 Answers   Silicon Biztech,


What is final class and final method?

0 Answers  


What is the use of count() function in php?

0 Answers  


How can you pass a variable by reference?

0 Answers  


what is php?

3 Answers  


Which function gives us the number of affected entries by a query?

0 Answers  


How we can convert dynamic url into static url? plz provide code.

2 Answers   Xento,


Categories