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