-1

I use the method or function mysql_num_rows() in my php code, it worked great and had no issues. I later just changed my web host. I created a new database that is identical to my old one. I changed all the information to access the database and am getting access to the new database but it is throwing an error once the code reaches mysql_num_rows. Why am I getting an error for mysql_num_rows? The results are suppose to be 0 when the function is ran because I have no information in my new database, but I also added information just so I didn't get a 0 and it is still giving my an error. Why?!!!!

4

1 回答 1

0

听起来您已经转移到具有较新版本 PHP 的服务器 - 不推荐使用 mysql 函数,使用 mysqli(并将其余的数据库函数转换为 mysqli): http ://au1.php.net/manual/en/ mysqli-result.num-rows.php

于 2013-10-02T01:45:16.807 回答