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

Tell me what are sql injections, how do you prevent them and what are the best practices?

0 Answers  


Different between the var_dump() and print_r()?

4 Answers  


Can we run php in apache tomcat?

0 Answers  


What does mysqli_query return?

0 Answers  


How to Retrieve a Cookie Value?

0 Answers  


Why echo is faster than print in php?

0 Answers  


How can we encrypt the username and password using PHP?

3 Answers   Rushmore Consultancy,


Why do you need to filter out empty files?

0 Answers  


What is difference between print and echo in php?

0 Answers  


What are the ways we can destroy a session variable ?

3 Answers  


What is php rest api?

0 Answers  


Do you know what are traits?

0 Answers  


Categories