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

Do you know is it possible to extend the execution time of a php script?

0 Answers  


How to select a database in php?

0 Answers  


Why print_r is used in php?

0 Answers  


What is the difference between associative array and indexed array?

0 Answers  


How can we display information of a variable and readable by a human with php?

0 Answers  






hi,am a fresher in sap sd,will i try as a fresher or i wl go for with 2 to 3 yr exp,pls suggest me which web site is best for sap freshers.

0 Answers  


What is the name of the scripting engine that powers PHP?

0 Answers  


What is php session_start() and session_destroy() function?

0 Answers  


How to create a table to store files?

0 Answers  


What are the variables in php?

0 Answers  


Sir, I want sbi clearical post model question paper please sent my mail id srinivas_33000@ahoo.co.in

0 Answers   State Bank Of India SBI,


What is regular expression in javascript?

0 Answers  


Categories