Location: PHPKode > projects > PHP Multiple Newsletters > admin/email.php
<?php
/***************************************************************************
File Name 	: email.php
Domain		: http://www.Triangle-Solutions.com/
----------------------------------------------------------------------------
Author		: Ian Warner
Copyright	: (C) 2001 Triangle Solutions Ltd
Email		: hide@address.com
URL		: http://www.triangle-solutions.com/
Description	: Shows the Templates for the Plain and HTML variations.
Date Created	: Tuesday 24 February 2004 16:40:22
File Version	: 2.7
\\||************************************************************************/

############ INCLUDE THE CONFIG AND HEADER FILE ############

	include ('../config.php');
	include ('../class/functions.php');

	IF ($_GET['emailid'] == 'plain')
		$field = 'newsletter_plainemail';
		ELSE
			$field = 'newsletter_htmlemail';

	$query = "	SELECT $field
			FROM news_newsletter
			WHERE newsletter_id = '".$_GET['newsid']."'";

	$result = @mysql_query($query);
	$row = @mysql_fetch_array($result);

	extract($row);

	IF ($field == 'newsletter_plainemail')
		echo stripslashes(nl2br($$field));
		ELSE
			echo stripslashes($$field);
?>
Return current item: PHP Multiple Newsletters