<span class="Apple-style-span" style="border-collapse: collapse;">If you don&#39;t need&nbsp;interpolation&nbsp;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 &#39;&lt;b&gt;&nbsp;<span class="Apple-style-span" style="color: rgb(80, 0, 80); ">Post Date: &#39;.$row[&#39;post_date&#39;].&#39;</span></span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse;"><span class="Apple-style-span" style="color: rgb(80, 0, 80); ">&lt;br&gt;Posted By: &#39;.$row[&#39;post_author&#39;].&#39;&lt;br&gt;</span><div class="Ih2E3d" style="color: rgb(80, 0, 80); ">
Subject: &#39;.$row[&#39;post_title&#39;].&#39;&lt;br&gt;<br></div>&lt;/b&gt;<br>&lt;br&gt;&lt;br&gt;<br>&#39;.$row[&#39;post_text&#39;].&#39;<br>&lt;hr&gt;&lt;br&gt;&#39;;<br></span><br><div class="gmail_quote">On Wed, Dec 3, 2008 at 7:48 AM, Rob Dege <span dir="ltr">&lt;<a href="mailto:livemotion@gmail.com">livemotion@gmail.com</a>&gt;</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) &lt;bold&gt; is not a w3c compliant tag, you want to use &lt;b&gt; instead<br>
<br>2) You can make the code faster by running one print instead of the 8:<br><br>print &quot;&lt;b&gt;<div class="Ih2E3d"><br>
Post Date: $row[&#39;post_date&#39;]&lt;br&gt;<br></div><div class="Ih2E3d">Posted By: $row[&#39;post_author&#39;]&lt;br&gt;<br></div><div class="Ih2E3d">Subject: $row[&#39;post_title&#39;]&lt;br&gt;<br></div>&lt;/b&gt;<br>
&lt;br&gt;&lt;br&gt;<br>$row[&#39;post_text&#39;]<br>&lt;hr&gt;&lt;br&gt;&quot;;<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">&lt;<a href="mailto:robert@muzzlethem.com" target="_blank">robert@muzzlethem.com</a>&gt;</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>
 &nbsp; // load data from the database and show data in the browser<br>
 &nbsp; while($row = mysql_fetch_assoc($result))<br>
 &nbsp; &nbsp; &nbsp; {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print &quot;&lt;bold&gt;&quot; ;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print &quot;Post Date: {$row[&#39;post_date&#39;]} &lt;br&gt;&quot;;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;print &quot;Posted By: {$row[&#39;post_author&#39;]} &lt;br&gt;&quot;;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;print &quot; &nbsp;Subject: {$row[&#39;post_title&#39;]} &lt;br&gt;&quot;;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;print &quot;&lt;br&gt;&lt;br&gt;&quot;;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;print &quot;&lt;/bold&gt;&quot;;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;print $row[&#39;post_text&#39;];<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;print &quot;&lt;HR&gt;&lt;BR&gt;&quot;;<br>
 &nbsp; &nbsp; &nbsp; }<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: &quot;They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.&quot;<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>