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,"SEL ECT Name FROM buyer WHERE usersId='$client_id'"),0);
but it con't work.
Please I need your helps!
i need to get a one value from a table and store it in a variable using this code
$OwnerName= mysqli_result(mysqli_query
but it con't work.
Please I need your helps!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.