<span class="Apple-style-span" style="border-collapse: collapse;">If you don't need interpolation you could use single quotes + concatation</span><div><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></div><div><span class="Apple-style-span" style="border-collapse: collapse;">print '<b> <span class="Apple-style-span" style="color: rgb(80, 0, 80); ">Post Date: '.$row['post_date'].'</span></span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse;"><span class="Apple-style-span" style="color: rgb(80, 0, 80); "><br>Posted By: '.$row['post_author'].'<br></span><div class="Ih2E3d" style="color: rgb(80, 0, 80); ">
Subject: '.$row['post_title'].'<br><br></div></b><br><br><br><br>'.$row['post_text'].'<br><hr><br>';<br></span><br><div class="gmail_quote">On Wed, Dec 3, 2008 at 7:48 AM, Rob Dege <span dir="ltr"><<a href="mailto:livemotion@gmail.com">livemotion@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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><div class="Ih2E3d"><br>
Post Date: $row['post_date']<br><br></div><div class="Ih2E3d">Posted By: $row['post_author']<br><br></div><div class="Ih2E3d">Subject: $row['post_title']<br><br></div></b><br>
<br><br><br>$row['post_text']<br><hr><br>";<br>
<br>Other than that, it looks fine to me.<br><br>-Rob<div><div></div><div class="Wj3C7c"><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" target="_blank">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></div></div><font color="#888888">-- <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>
</font><br>_______________________________________________<br>
nflug mailing list<br>
<a href="mailto:nflug@nflug.org">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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Frank<br>Shenanigans!!<br>I do the voodoo that I do do with sudo!<br>
</div>