Jump to content
Sign in to follow this  
Yatendra

Using mysqli_result instead of mysql_result!

Recommended Posts

I don't know how to use "mysqli_result()" function, with general arguments.

 

In "mysql_result()" function, it was like this :- "mysql_result($query, 'row', 'feild')".

 

Here First argument is the "query",

 

Second argument is the specific "row" in the database,

 

Third argument is the "field name" of the row.

 

I don't know if the arguments are same for "mysqli_result()" or not, or maybe more arguments are included or excluded!!!!

 

 

Hey, I noticed the same question has been asked by so many different members!! in the Forum. Focusing to different use.

 

But one more thing I noticed that the actual implementation is not here,

Like "mysqli_result('argument1', 'argument2', 'argument3');".

 

Basically the implementation is quite simple, but heres the confusion thing, and thats the correct arguments, as I've show in most upper example!!?

Edited by Yatendra

Share this post


Link to post
Share on other sites

When in doubt, just look up the documentation. There's not a mysqli_result function:

 

http://php.net/manual/en/class.mysqli.php

 

There's a mysqli_result class though, which represents the result of a statement.

 

http://php.net/manual/en/class.mysqli-result.php

Share this post


Link to post
Share on other sites

Thnkx for the refrence, 'justsomeguy'.

Solved the issue though.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×