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

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

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -