<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1024271" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1024271</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/perl-php-conversion#comment-1148606</link>
    <description> &lt;p&gt;Greg - thanks for that i&#039;ll try it out &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 30 Mar 2004 18:08:33 +0000</pubDate>
 <dc:creator>unitunes</dc:creator>
 <guid isPermaLink="false">comment 1148606 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/perl-php-conversion#comment-1148604</link>
    <description> &lt;p&gt;I didn&#039;t test any of the following, but it should work. There are a few notes though:&lt;/p&gt;
&lt;p&gt;1. I&#039;m assuming this page will be called from a form using the POST method.&lt;/p&gt;
&lt;p&gt;2. The &lt;strong&gt;preg_match&lt;/strong&gt; may need to be tested, I just went off of the docs for php on how to use it. I gave the URL in a comment in the code&lt;/p&gt;
&lt;p&gt;3. The &lt;strong&gt;number_format&lt;/strong&gt; just uses the default settings. I provided a link to its documentation in case you need to adjust how it formats&lt;/p&gt;
&lt;p&gt;4. The &lt;strong&gt;htmlentities&lt;/strong&gt; is used to convert any special HTML characters over so they display as characters, and not get interpreted by the browser.&lt;/p&gt;
&lt;p&gt;Here is the code, hope it helps!&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;err&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$area&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$value&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; print \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Error in \&quot; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$area&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . \&quot; field - \&quot; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$value&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;&amp;nbsp; print \&quot;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;\n\&quot;;&lt;br /&gt;&amp;nbsp; exit;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// Get files from the form being submitted??&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$price&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;PRICE&#039;];&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$bedrooms&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;BEDROOMS&#039;];&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$comments&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;COMMENTS&#039;];&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$location&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;LOCATION&#039;];&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$prototype&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;PROPTYPE&#039;];&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$name&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;NAME&#039;];&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$telephone&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;TELEPHONE&#039;];&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$email&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;EMAIL&#039;];&lt;br /&gt;&lt;br /&gt;// Note, I am not good with doing expression matching, so you may need to &lt;br /&gt;// check &amp;lt;a href=&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;http&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//www.php.net/manual/en/function.preg-match.php&quot; title=&quot;http://www.php.net/manual/en/function.preg-match.php&quot;&amp;gt;http://www.php.net/manual/en/function.preg-match.php&amp;lt;/a&amp;gt; for details&lt;br /&gt;// In the docs, it said it is PERL compatable expression matching&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (!&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;preg_match&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;/\A\d+\Z/\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$price&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) || &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$price&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; &amp;gt; 1E6 || &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$price&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; &amp;lt; 0) &lt;br /&gt;&amp;nbsp; err(\&quot;PRICE\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$price&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;if (!preg_match(\&quot;m/\A\d+\Z/\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$bedrooms&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) || &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$bedrooms&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; &amp;gt; 10 || &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$bedrooms&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; &amp;lt;1)&lt;br /&gt;&amp;nbsp; err(\&quot;BEDROOMS\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$bedrooms&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;if (!preg_match(\&quot;m/\w|/\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$comments&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;))&lt;br /&gt;&amp;nbsp; err(\&quot;COMMENTS\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$comments&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;};&lt;br /&gt;&lt;br /&gt;if (!preg_match(\&quot;m/London|Manchester|Coventry|Leeds/i\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$location&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;))&lt;br /&gt;&amp;nbsp; err(\&quot;LOCATION\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$location&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;if (!preg_match(\&quot;m/Freehold|Leasehold/i\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$prototype&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;))&lt;br /&gt;&amp;nbsp; err(\&quot;PROTOTYPE\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$prototype&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;if (!preg_match(\&quot;/\A[a-z]+\Z/i\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$name&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;))&lt;br /&gt;&amp;nbsp; err(\&quot;NAME\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$name&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;if (!preg_match(\&quot;m/\A\d+\Z/i\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$telephone&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;))&lt;br /&gt;&amp;nbsp; err(\&quot;TELEPHONE\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$telephone&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;if (!preg_match(\&quot;/\A[a-z]+\@[a-z]+\Z/i)\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$email&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;))&lt;br /&gt;&amp;nbsp; err(\&quot;EMAIL\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$email&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;// Changing the prototype to be just the first letter&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$prototype&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$prototype&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,0,1);&lt;br /&gt;&lt;br /&gt;print \&quot;&amp;lt;h1&amp;gt;Search Matched&amp;lt;/h1&amp;gt;\n\&quot;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$query&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;SELECT price,bedrooms,comments FROM houses \&quot; .&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&quot;WHERE \&quot; .&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&quot;&amp;nbsp; bedrooms &amp;gt;= \&quot; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$bedrooms&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . \&quot; AND \&quot; .&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&quot;&amp;nbsp; price &amp;lt;= \&quot; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$price&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . \&quot; AND \&quot; .&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&quot;&amp;nbsp; location = \&quot; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$location&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . \&quot; AND \&quot; .&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&quot;&amp;nbsp; prototype = \&quot; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$prototype&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dbHost&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;possum\&quot;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dbName&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp; =&amp;nbsp; \&quot;staffkeithy\&quot;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dbUser&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;\&quot;;&amp;nbsp; // your user name&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dbPass&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;\&quot;;&amp;nbsp; // your password&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dbConn&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = @mysql_connect(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dbHost&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dbUser&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dbPass&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)&lt;br /&gt;&amp;nbsp; or die(\&quot;Can&#039;t connect to database\&quot;);&lt;br /&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dbName&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; != \&quot;\&quot; &amp;amp;&amp;amp; !@mysql_select_db(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dbName&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;))&lt;br /&gt;&amp;nbsp; die (\&quot;The site database in unavailable\&quot;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dbResult&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = mysql_query(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$query&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dbConn&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)&lt;br /&gt;&amp;nbsp; or die(\&quot;Query Error: \&quot; . mysql_error());&lt;br /&gt;&lt;br /&gt;if (mysql_num_rows(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dbResult&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) &amp;gt; 0)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; print \&quot;&amp;lt;table border=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;\n\&quot;;&lt;br /&gt;&amp;nbsp; print \&quot;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Price&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Bedrooms&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Comments&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;\n\&quot;;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; while(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$thisRow&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = mysql_fetch_array(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dbResult&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;))&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print \&quot;&amp;lt;tr&amp;gt;\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // see &amp;lt;a href=&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;http&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//www.php.net/numberformat&quot; title=&quot;http://www.php.net/numberformat&quot;&amp;gt;http://www.php.net/numberformat&amp;lt;/a&amp;gt; for settings for fomatting #&#039;s&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;print \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;td&amp;gt;£\&quot; . number_format(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$thisRow&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;price&#039;]) . \&quot;&amp;lt;/td&amp;gt;\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print \&quot;&amp;lt;td&amp;gt;\&quot; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$thisRow&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;bedrooms&#039;] . \&quot;&amp;lt;/td&amp;gt;\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // see &amp;lt;a href=&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;http&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//www.php.net/manual/en/function.htmlentities.php&quot; title=&quot;http://www.php.net/manual/en/function.htmlentities.php&quot;&amp;gt;http://www.php.net/manual/en/function.htmlentities.php&amp;lt;/a&amp;gt; for &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // info on the htmlentities() function.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;print \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;td&amp;gt;\&quot; . htmlentities(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$thisRow&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;comments&#039;]) . \&quot;&amp;lt;/td&amp;gt;\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print \&quot;&amp;lt;/tr&amp;gt;\n\&quot;;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; print \&quot;&amp;lt;/table&amp;gt;\n\&quot;;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;&amp;nbsp; print \&quot;&amp;lt;p&amp;gt;Sorry, no results were found.&amp;lt;/p&amp;gt;\n\&quot;;&lt;br /&gt;&lt;br /&gt;mysql_close(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dbConn&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 30 Mar 2004 18:03:45 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1148604 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
