php - Error: Object of class mysqli could not be converted to string -


i know question has been asked several times on platform, however, none of them able solve problem.

i getting error code below.

//this working $edition=mysqli_query($con,"select price books name='$book'");  //this showing error. query working when run on phpmyadmin. //$edition=mysqli_query($con,"select price books name='$book' , edition='$edition'");  //i using mysqli_fetch_assoc store in $row , use answer later. $row = mysqli_fetch_assoc($edition); 

let me know problem , solution. in advance. :)

here go :)

considering in working example variable $book been used, bet on other variable $edition. thinking if debug code , check value assigned before using make query, confirm if acceptable type.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -