Jump to content

How To Display This Data In Rows:


roldahayes

Recommended Posts

if(mysql_num_rows($result) >= 1)
{

 $email = '[email protected]';
 $subject = "LOW STOCK WARNING!";
 $message = "One or more products are running low:\r\n\r\n";
 while($row = mysql_fetch_assoc($result))
 {    
 $message   .= $row['code'] ."    -   ".  $row["name"];

 }
 if(mail($email, $subject, $message))
 {
       //mail successfully sent
 }
 else
 {
       //mail unsuccessful
 }
}

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.