Jump to content

[SOLVED] While loop, Will this work


guymclaren

Recommended Posts

Why don't you try it for yourself. It's not going to blow up, so you may as well give it a shot.

 

But, as Minase said, you may want this:

 

$mail = " SELECT id FROM invite WHERE sentcode = '1' ORDER BY id ASC";
$rec = mysql_query($mail) or die(mysql_error()); 
while ($row = mysql_fetch_assoc($rec)){
$email = $row['email'];
$fname = $row['fname'];

//send email//
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.