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

Whats the difference between include() and require()?

4 Answers  


What is Apache's configuration file typically called?

0 Answers  


What is the use of addslashes in php?

0 Answers  


When is a conditional statement ended with an endif?

0 Answers  


What is explode() in php?

0 Answers  






What is the use of hooks?

0 Answers  


What are the special characters you need to escape in single-quoted stings?

0 Answers  


What is xss in php?

0 Answers  


What is trait in php?

0 Answers  


Hi all,, im completely new to PHP, started learning just 2 days before. Can anybody tell me how to run a PHP file to see the program's output? i have created some simple program in Dreamweaver CS3 but don't know how to run it...

1 Answers  


What is rest api in php?

0 Answers  


What is php destruct?

0 Answers  


Categories