我的自定义php函数出了点问题

我的自定义php函数出了点问题,第1张

我的自定义php函数出了点问题

我认为问题出在您的代码中,您正在创建$ 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++;

并尝试



欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5640628.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-16
下一篇2022-12-16

发表评论

登录后才能评论

评论列表(0条)

    保存