Something is wrong with my custom php function

后端 未结 3 1663
粉色の甜心
粉色の甜心 2021-01-23 22:49

Okay so I am trying to create a custom function that will echo a site url inside an iframe for the end user.

The script has to check whether or not the user has already

3条回答
  •  难免孤独
    2021-01-23 23:55

    @Azeez Kallayi - you don't need to index array manually.

    $seenUrls[] = $row2['site_url'];
    

    In addition, you can fetch all result

    $rows = mysqli_fetch_all($result2,MYSQLI_ASSOC);
    foreach($rows as $row){
    echo $row['site_url'];
    }
    

提交回复
热议问题