Is there an alternative to mysql_result ()?

Source: Internet
Author: User
When I was learning php, the tutorials were all similar methods of mysql_connect. I commented that these methods are not recommended and I used an alternative method similar to mysqli_connect, when mysql_result is reached, I use mysqli_result to prompt that it is an undefined method. I checked it, mysqli _... when learning php, the tutorials are all Mysql_connectFor a similar method, read the comments and say that these are not recommended, and then use Mysqli_connectA similar alternative method can be found Mysql_resultI use Mysqli_resultThe prompt is an undefined method. Check it, Mysqli_resultYes. Mysql_resultYes "I"?

Reply content:

When learning php, the tutorials are allMysql_connectFor a similar method, read the comments and say that these are not recommended, and then useMysqli_connectA similar alternative method can be foundMysql_resultI useMysqli_resultThe prompt is an undefined method. Check it,Mysqli_resultYes.Mysql_resultYes"I"?

No. After the mysqli_query method is successfully executed, a mysqli_result object will be returned for the select statement. Please query the document on how to use this object. Http://php.net/manual/zh/class.mysqli-result.php

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.