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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Is multilevel inheritance possible in php?

503


What is mysqli php?

521


Do you have to initialize variables in php?

488


What is the interface in php?

534


What’s the special meaning of __sleep and __wakeup?

563






Is php a float?

537


What is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?

533


How many days will it take to learn php?

532


Explain me what are the 3 scope levels available in php and how would you define them?

728


Why do we use sessions in php?

528


How is it possible to know the number of rows returned in the result set?

546


What is php rest api?

532


What are the differences between GET and POST methods?

530


Tell me how is it possible to know the number of rows returned in result set?

546


How can we determine whether a variable is set?

523