
我认为问题出在您的代码中,您正在创建$ siteUrls,$
seenUrls数组。mysqli_fetch_assoc()函数将为您提供结果行作为关联数组。因此,如果您想在while循环中更改某些代码。请修改
while($row = mysqli_fetch_assoc($result)) { $siteUrls[$index] = $row; $index++;}到
while($row = mysqli_fetch_assoc($result)) { $siteUrls[$index] = $row['site_url']; $index++; }并且在第二个while循环中。改变这个
while($row2 = mysqli_fetch_assoc($result2)) { $seenUrls[$index] = $row2; $index++;}到
while($row2 = mysqli_fetch_assoc($result2)) { $seenUrls[$index] = $row2['site_url']; $index++;并尝试
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)