Thank you for the tips on the XHTML, and thanks for helping me understand the single sided tags. My page now validates! Whoo-hoo!
But, the fix did not quite work..
It viewed the same as it did before, but just left a large vertical gap between the 1st paragraph and the 2nd paragraph. (I tried showing you in this thread, but it is hard to make it look like it does on my web page).
You see that yes, the paragraphs are now correctly separated (amen), but only the
first line of the
first paragraph is indented.
I am hoping to indent the
FIRST LINE of the second paragraph, as well as the first line of the third paragraph (and any subsequent paragraphs).
I hope that makes sense. If you wouldn't mind taking a look at my page after work, you will see what I mean. I really hate to keep bugging you, but you obviously know php really well, and I am still trying to learn (and am soo close!). Thank you very much.
I will show you my latest current code:
PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
*** <h1>Your Info</h1><br />
<?php
require ('dbstuff.php');
$db = connectDB();
// get results from database
$query= "SELECT * FROM mytable";
$result=mysql_query($query)or die("Failed Query of " . $query);
$num=mysql_numrows($result);
mysql_close();
$i=0;
while ($i<$num) { // beginning of outer loop
$name=mysql_result($result,$i,"name");
$address=mysql_result($result,$i,"address");
$paragraph=mysql_result($result,$i,"paragraph");
?>
<?php
echo "<b>Name:</b> ". $name."<br/>"."<br/>" ;
echo "<b>Address:</b> ". $address."<br/>"."<br/>"."<br/>";
echo "<b>Paragraph(s) below:</b>"."<br/>";
?>
<div class="paragraph">
<p class="paragraph">
<?php
print nl2br($paragraph);
?>
</p>
</div>
<p><a href="user/add.php"> Back to User Interface</a></p>
<?php
?>
<?php
$i++;} // End of outer loop
?>
</body>
</html>