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

A process is identified by a unique___

588


Write an example to remove html tags from a string in php?

514


How to enable cURL in PHP?

648


What is the difference between $message and $$message in php?

420


Explain do you use composer? If yes, what benefits have you found in it?

534






Why echo is faster than print in php?

512


What percentage of websites use php?

500


What is meant by session in php?

496


What is the output of the ucwords function in this example?

546


how to use http headers inside php? Write the statement through which it can be added?

502


Difference between get and post method.

541


Explain me what is the goto statement useful for?

472


How do I update php?

570


How to create an array in php?

541


How we can retrieve the data in the result set of mysql using php?

518