I have an script which sends an email notification when a MySql table is updated through a form. What I would like to do is include the contents of this table in the email that gets sent out, but I’m not sure how I would do that. Any help would be greatly appreciated! Thanks!
@MatMelJul 25.2007 — #You can output the mysql table into the email just like a normal html-page: [code=php] $mail_body = "<table>"; $res = mysql_query("SELECT * FROM table"); while($res2 = mysql_fetch_array($res) ) { $mail_body .= "<tr>"; foreach($res2 as $value) { $mail_body .= "<td> $value </tr>"; } $mail_body .= "</tr>"; } $mail_body .= "</table>"; [/code]