two things that jump out at me:<br><br>1) <bold> is not a w3c compliant tag, you want to use <b> instead<br><br>2) You can make the code faster by running one print instead of the 8:<br><br>print "<b><br>
Post Date: $row['post_date']<br><br>Posted By: $row['post_author']<br><br>Subject: $row['post_title']<br><br></b><br><br><br><br>$row['post_text']<br><hr><br>";<br>
<br>Other than that, it looks fine to me.<br><br>-Rob<br><br><div class="gmail_quote">On Wed, Dec 3, 2008 at 12:31 AM, Robert Wolfe <span dir="ltr"><<a href="mailto:robert@muzzlethem.com">robert@muzzlethem.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ok, I know that this is probably the wrong group to be doing this in but I have a quick simple PHP question.<br>
<br>
I am working on a newsletter type PHP script and was wondering if the following code snippet was indeed correct (I am not able to test it here on my laptop just yet and I have not uploaded the code to my primary development/production/test server).<br>
<br>
::snip::<br>
// load data from the database and show data in the browser<br>
while($row = mysql_fetch_assoc($result))<br>
{<br>
print "<bold>" ;<br>
print "Post Date: {$row['post_date']} <br>";<br>
print "Posted By: {$row['post_author']} <br>";<br>
print " Subject: {$row['post_title']} <br>";<br>
print "<br><br>";<br>
print "</bold>";<br>
print $row['post_text'];<br>
print "<HR><BR>";<br>
}<br>
<br>
:: end snip ::<br>
<br>
I am writing this small package using Zend Studio for Eclipse v6.0 on my laptop which is running Unbuntu 8.10 Desktop.<br>
<br>
_______________________________________________<br>
nflug mailing list<br>
<a href="mailto:nflug@nflug.org" target="_blank">nflug@nflug.org</a><br>
<a href="http://www.nflug.org/mailman/listinfo/nflug" target="_blank">http://www.nflug.org/mailman/listinfo/nflug</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>-Rob<br><br>Ben Franklin Quote: "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."<br>