📜  mysqli_query 打印结果 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:15.411000             🧑  作者: Mango

代码示例1
if (isset($_POST['0'])) {
 $sql = "SELECT email FROM CommercialEmails WHERE articleid = '$_POST[article]' AND dripid = 1 AND sent='a'";
 $resultsd1 = mysqli_query($conn, $sql);

 while ($row = mysqli_fetch_assoc($resultsd1))
 {
    echo $row['email'];
 }
}