Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
784 views
in Technique[技术] by (71.8m points)

php - Fatal error: Call to undefined method mysqli_stmt::get_result()

i'm working to a web app, and PHP is my backend language...

until now, i tested the website on localhost, using easyPHP (PHP version 5.4.6)... and everything was good! Today i tried to run the website online (PHP version 5.3.18), and i've this error:

Fatal error: Call to undefined method mysqli_stmt::get_result() in etc.

I think this is strange, because the get_result() method should be supported since PHP 5.3.0 (source)

Do you have any ideas how to solve this problem?

Thank you in advance

UPDATE:

i didn't share any code because it is just fine (it still works on my localhost)... the problem should be on the online environment.

UPDATE 2: I share the section of the phpInfo with the info about mysqli...

Localhost: Mysqli on localhost

Remote: Mysqli online

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I've found the problem.

From php.net:

mysqli_stmt :: get_result is Available only with mysqlnd.

My online environment, unlike my local environment seems to be lacking of mysqlnd!

So I guess I've to contact my host.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...