Link to home
Start Free TrialLog in
Avatar of NIYONSE Schaddy
NIYONSE Schaddy

asked on

Fatal error: Uncaught Error: Call to undefined function mysqli_result()

Helloo

i need to get a one value from a  table  and store it in a variable using this code  
$OwnerName= mysqli_result(mysqli_query($con,"SELECT Name FROM buyer WHERE usersId='$client_id'"),0);
but it con't work.

Please I need your helps!
Avatar of David Favor
David Favor
Flag of United States of America image

Provide more context.

Likely you're calling mysqli_connect() from PHP.

So, first dump your phpinfo() output + ensure your hosting environment has install the PHP mysql extension.

Probably this extension is missing + will have to be installed, to clear your error.
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I agree with Julian, I never combine functions like that.  Make them separate statements as he shows above.
Poster has stopped posting, so appears Julian's answer is likely best.