嗨,下面是我程序中的代码的一部分。
..........................
foreach($_POST['delz'] as $delz)
{
$QR = "SELECT bname, bsku FROM brands WHERE id='$delz'";
$rr= mysqli_query($db,$QR) or die ("SQL Error");
$roV = mysqli_num_rows($rr);
echo "<tr>
<td class='sc_five'>
$rr ";
.........
当我尝试打印的值时,$rr
我收到一条错误消息,Object of class mysqli_result could not be converted to string in C:\xam........
有人告诉我我哪里出错了,我该如何调整自己?
编辑:
我的连接如下;
include ('../../connection/index.php');