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

I just installed php 5.3.1 in my linux server and now my old work which i used to write with tags is not working at all.. Please help me out.. How can i resolve this??

1 Answers  


Does php 7 support multiple inheritance?

0 Answers  


What is the functionality of the function strstr and stristr?

2 Answers  


What is the difference between nowdoc and heredoc?

0 Answers  


What is the purpose of constant() function?

0 Answers  






What is the special meaning of __sleep and __wakeup?

0 Answers  


Is php a programming language?

0 Answers  


How can we determine whether a variable is set?

0 Answers  


Which function is used to read a single character from a file in PHP.

0 Answers  


m new to xampp i want to configure file server in xampp... is it possible ??? if so help me....

0 Answers  


What is a static method php?

0 Answers  


I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?

0 Answers  


Categories