English 中文(简体)
php 选择散装电子邮件和邮局
原标题:php selecting bulk email and post

• 在数据库中接收数以千计的客户电子邮件。

3. 安排电子邮件至 php:

$q = $db->query("SELECT email FROM user LIMIT 200");
while($r = $q->fetch_array(MYSQLI_ASSOC)) :
  echo  <input type="checkbox" name="emailList" class="useremail" value=" .$r[ email ]. "> ;
endwhile;

任何人都知道如何只张贴选定的电子邮件? 如果可能的话,则会 j。 当然,我会利用php的邮件来张贴电子邮件。

问题回答
how do i echo out random email

问 题

SELECT email FROM user ORDER BY RAND() LIMIT 200

Generally, using ORDER BY RAND() is not a good idea. check here http://jan.kneschke.de/projects/mysql/order-by-rand/

可通过<代码>RAND();

$q = $db->query("SELECT email FROM user ORDER BY RAND() LIMIT 200");

Your second question is not clear though, you will need to change the value of the checkbox to the email address or an id relating to that email, maybe like this:

while($r = $q->fetch_array(MYSQLI_ASSOC)) :
  echo  <input type="checkbox" name="emailList" class="useremail" value=" .$r[ email ]. "> ;
endwhile;

届时,你可以查阅<代码>emailList 的核对值。 <代码>_POST或_GET

var_dump($_POST);

var_dump($_GET);




相关问题
Angle brackets in php

I want to store angle brackets in a string in PHP because i want to eventually use mail() to send an HTML email out. The following is the code that doesn t seem to work. while(...) { $msg .= "<...

authlogic auto_register feature using my options

I have auto registration working with authlogic using gaizka s version of authlogic_openid which I found on Github since pelle s original addition of the feature seemed to cause issues. http://...

Zend 邮件问题,涉及外国char子+ com子

泽斯德邮局在名称被定为具有外国性质(如“保”)和 com(”)的物品时,就放弃了一种例外(因为邮局(邮局)退回假)。 重新提出以下守则。

How to track an email in Java?

How I can track an email? I m using java on the server side for sending emails. I want to track whether it is delivered , opened, etc... How I can do that ?

Web Link in a mail is not rendering as link in yahoo

string from = "abc@gmail.com"; string to = "xyz@gmail.com,xyz@yahoo.co.in"; string password="abcxyz"; MailMessage mail = new System.Net.Mail.MailMessage(); mail.To.Add(to); mail.From = new ...

SharePoint - Approaching Website Storage Limit Email

How can i go about changing the distribution list as well as the email text for the email that goes out to site collection admin when a site collection approaches it s size limit? Thanks for your ...

How to create an email mailing list

Im creating a coming soon page for a website im developing, and im adding an option for the user to enter their email address so we can email them when the site is up. How do I do this?

CCNet email does not include MSBuild results

We re using CCNet 1.4.4.83 but when an MSBuild task fails, we don t get the MSBuild results (i.e. missing file or whatever reason the compile failed) in the email notification. I do see the build ...

热门标签