[Wolves] Php question

Wayne Morris wayne at machx.co.uk
Mon Jan 17 20:19:59 GMT 2005


I have a php which correctly displays data from a mysql database.
I have a php page which allows entry of text which is then emailed to a
mailing list.
I want to mail the data to the mailing list, but when I copy/paste the
first page (below) into the text input form:

<?php
	require( "common.php" );
	dbConnect();
	$time = time();
	$result = mysql_query( "SELECT ad_id, cat_id, subject, add_date FROM
ads WHERE exp_date>$time ORDER BY add_date DESC LIMIT 20" ) or error(
mysql_error() );
	displayHeader( "Recent Added" );
	// include( "menu.php" );
	echo "<p align=\"center\"><font size=\"4\">Recent Listed</font></p>\n";
	echo "<div align=\"center\">\n";
	echo "  <center>\n";
	echo "  <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"
width=\"500\">\n";
	echo "    <tr class=\"frame\">\n";
<much more snipped>

results in an email:

$time ORDER BY add_date DESC LIMIT 20" ) or error( mysql_error() );
displayHeader( "Recent Added" ); // include( "menu.php" ); echo "

Recent Listed

\n"; echo "
\n"; echo " 
                              \n"; echo " 
<more snipped.>


Can anyone see why it breaks at the point it does, the page works fine
on its own.

Cheers

Wayne



More information about the Wolves mailing list