欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

对象-php代码问题,读取数据库的数据

程序员文章站 2024-02-18 11:33:28
...
代码对象php数据库

do{
$d=mysqli_query($con,"SELECT AID FROM id WHERE BID='$g'");
mysqli_query($con,"DELETE * FROM id WHERE BID='$g'");
$g=$d;
}
while($d==0);
这段php代码中$d=mysqli_query($con,"SELECT AID FROM id WHERE BID='$g'");出问题了
Catchable fatal error: Object of class mysqli_result could not be converted to string in C:\wamp\www\
该怎么解决