Reply to making this look readable?

Your name:

Reply:


Posted by paul814 on 10/30/07 15:25

How can I separate all my entries so that they look presentable and
readable on the page?
=====
<html>
<head>
<title>View Editorial report</title>
</head>

<body>
<p>
<h3>Editorial:</h3>
</p>

</body>
</html>

<?php
$host="localhost";
$user="root";
$pass="";
$db="productiondb";
$con = mysql_connect($host, $user, $pass);

$eddate = $_POST["editorialdate"];
$edname = $_POST["editorialname"];
$edcomments = $_POST["editorialdescription"];

if (!$con)
{
die('Unable to connect: ' . mysql_error());
}
mysql_select_db($db, $con) or die('Unable to connect: ' .
mysql_error());


$sql = "SELECT * FROM EDITORIAL ORDER BY EDITORIALDATE DESC";
$rs = mysql_query($sql,$con);


while($row=mysql_fetch_object($rs)){


print "<div class=\"message\">";
print $row->editorialdate ;
print $row->editorialname ;
print $row->editorialcomments;
print "</div>";
}

?>
=======
Maybe something like this:
DATE
NAME
COMMENTS

** a couple spaces and then the next record **

DATE
NAME
COMMENTS

I've tried this:

print "<div class=\"message\">";
print " <h2>" . $row->eddate . "</h2>";
print " <h4>" . $row->edname . "</h4>";
print " <p>" . $row->edcomments "</p>";
print "</div>";

But I get an error: Parse error: syntax error, unexpected
T_CONSTANT_ENCAPSED_STRING in C:\xampp\htdocs\dailyreport\view-
editorial.php on line 43

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация