<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>peterv6's Feed - Programmer's Heaven</title>
    <link>http://www.programmersheaven.com/feed/User/260348/RSS.aspx</link>
    <description>Events at Programmer's Heaven related to the user peterv6.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 18:12:24 -0700</pubDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <item>
      <title>Re: passing php variable to html - is it possible?</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/392262/392391/ReadMessage.aspx#392391</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/392262/392391/ReadMessage.aspx#392391"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Thank you very much!  I'm new to this, so I'll make sure to remember this in the future!</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/392262/392391/ReadMessage.aspx#392391</guid>
      <pubDate>Tue, 16 Jun 2009 03:27:46 -0700</pubDate>
    </item>
    <item>
      <title>passing php variable to html - is it possible?</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/392262/392262/ReadMessage.aspx#392262</link>
      <description>&lt;p&gt;Posted a '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/392262/392262/ReadMessage.aspx#392262"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;In the code listed below, I want to be able to pass the value from the varibles in the sql select statement to the html page below.  (Note: the only one I'm trying is the $company variable, I'll do the rest when I get that to work.)  The problem is that no matter what I use in the value clause in the html, it doesn't evaluate the variable to the value.  Can anyone help me out?  I'm new to this, so I'm pretty sure I'm doing something silly to cause this.&lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;?php
$link  = mysql_connect('xxxxxxxxxxx.net:4444', 'xxxxxx', 'pw','db');
if (!$link) {
	 printf("Connect failed: %s\n", mysql_error());
	 exit();
} else {
// select the database
   $db_selected = mysql_select_db('testdb', $link);
   if (!$db_selected) {
      die ('Select db failed: testdb: ' . mysql_error());
   }
// Perform Query
   $query ="select * from leadsTable";
   $result = mysql_query($query);
   $rows=mysql_num_rows($result);
   if (!$result) {
      $message  = 'Invalid query: ' . mysql_error() . "\n";
      $message .= 'Whole query: ' . $query;
      die($message);
   } else {
      while ($newArray = mysql_fetch_array($result, MYSQL_ASSOC)) {
             $id  = $newArray['id'];
             &lt;strong&gt;&lt;span style="color: Red;"&gt;$company = $newArray['company_name'];&lt;/span&gt;&lt;/strong&gt;
             $contact = $newArray['contact'];
             $phone = $newArray['phone'];
             $fax = $newArray['fax'];
             $street = $newArray['street'];
             $city = $newArray['city'];
             $state = $newArray['state'];
             $zip = $newArray['zip'];
             $job_type = $newArray['job_type'];
             $license_class = $newArray['license_class'];
             $experience = $newArray['experience'];
             $date_found = $newArray['date_found'];
             $date_of_contact = $newArray['date_of_contact'];
             $notes = $newArray['notes'];
             echo "ID is ".$id.
                  "&amp;lt;br/&amp;gt;Company: ".$company.
                  "&amp;lt;br/&amp;gt;Contact: &amp;amp;nbsp ".$contact.
                  "&amp;lt;br/&amp;gt;Phone: &amp;amp;nbsp  &amp;amp;nbsp ".$phone.
                  "&amp;lt;br/&amp;gt;Fax: &amp;amp;nbsp  &amp;amp;nbsp  &amp;amp;nbsp  &amp;amp;nbsp ".$fax.
                  "&amp;lt;br/&amp;gt;Street: &amp;amp;nbsp  &amp;amp;nbsp ".$street.
                  "&amp;lt;br/&amp;gt;City: &amp;amp;nbsp  &amp;amp;nbsp  &amp;amp;nbsp  &amp;amp;nbsp ".$city.
                  "&amp;lt;br/&amp;gt;State: &amp;amp;nbsp  &amp;amp;nbsp  &amp;amp;nbsp ".$state.
                  "&amp;lt;br/&amp;gt;Zip: &amp;amp;nbsp  &amp;amp;nbsp  &amp;amp;nbsp  &amp;amp;nbsp ".$zip.
                  "&amp;lt;br/&amp;gt;Job Type: &amp;amp;nbsp ".$job_type.
                  "&amp;lt;br/&amp;gt;License: $nbsp  ".$license_class.
                  "&amp;lt;br/&amp;gt;Experience: ".$experience.
                  "&amp;lt;br/&amp;gt;Date Found: ".$date_found.
                  "&amp;lt;br/&amp;gt;Date of Contact: ".$date_of_contact.
                  "&amp;lt;br/&amp;gt;Notes: $nbsp ".$notes.
                  "&amp;lt;br/&amp;gt;------------------------------&amp;lt;br/&amp;gt;";
      }
   echo "Rows returned: ". $rows;
   }
}
//mysql_free_result($result);
?&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Update Leads Table&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;!--align="center" will center the form --&amp;gt;
&amp;lt;table width="300" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"&amp;gt;
&amp;lt;tr&amp;gt;
&amp;lt;form name="form1" method="post" action="update_leads_table.php"&amp;gt;
&amp;lt;td&amp;gt;
&amp;lt;table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF"&amp;gt;
&amp;lt;tr&amp;gt;
&amp;lt;td colspan="4"&amp;gt;&amp;lt;strong&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;
Update Lead&amp;lt;/strong&amp;gt;&amp;lt;/td&amp;gt;
&lt;strong&gt;&lt;span style="color: Red;"&gt;
This php echo statement displays the value I'm looking for!
&lt;/span&gt;&lt;/strong&gt;
&amp;lt;? echo "company $company&amp;lt;br&amp;gt;"; ?&amp;gt;
&amp;lt;/tr&amp;gt;
&amp;lt;tr&amp;gt;
&amp;lt;td width="78"&amp;gt;Company&amp;lt;/td&amp;gt;
&amp;lt;td width="40"&amp;gt;:&amp;lt;/td&amp;gt;
&amp;lt;td width="294"&amp;gt;&amp;lt;input name="company" type="text" value="&lt;strong&gt;&lt;span style="color: Red;"&gt;$company&lt;/span&gt;&lt;/strong&gt;"&amp;gt;&amp;lt;/td&amp;gt;
&amp;lt;td&amp;gt; Date Found : &amp;lt;/td&amp;gt;
&amp;lt;td&amp;gt;&amp;lt;input name="date_found" type="text" id="date_found"&amp;gt;&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;
&amp;lt;/td&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/392262/392262/ReadMessage.aspx#392262</guid>
      <pubDate>Fri, 12 Jun 2009 19:33:22 -0700</pubDate>
    </item>
    <item>
      <title>How can I select duplicate rows in MySQL</title>
      <link>http://www.programmersheaven.com/mb/database/375028/375028/ReadMessage.aspx#375028</link>
      <description>&lt;p&gt;Posted the message '&lt;a href="http://www.programmersheaven.com/mb/database/375028/375028/ReadMessage.aspx#375028"&gt;How can I select duplicate rows in MySQL&lt;/a&gt;' on the &lt;a href="http://www.programmersheaven.com/mb/database/Board.aspx"&gt;Database &amp; SQL&lt;/a&gt; forum.&lt;/p&gt;I need to select all the duplicate rows in a MySQL table.  The table contains 3 columns:&lt;br /&gt;
&lt;br /&gt;
ID - unique primary key&lt;br /&gt;
Name&lt;br /&gt;
Description&lt;br /&gt;
&lt;br /&gt;
I want to select all records with duplicate values in the name field, so the output would be like:&lt;br /&gt;
&lt;br /&gt;
1 Bill operations&lt;br /&gt;
4 Bill receiving&lt;br /&gt;
7 Tom  operations&lt;br /&gt;
8 Tom  customer service&lt;br /&gt;
...etc&lt;br /&gt;
&lt;br /&gt;
Any help would be greatly appreciated.  I'm new to this, so be kind!</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/375028/375028/ReadMessage.aspx#375028</guid>
      <pubDate>Mon, 08 Sep 2008 20:27:17 -0700</pubDate>
    </item>
    <item>
      <title>mail() function returns backslash escape characters</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/374044/374044/ReadMessage.aspx#374044</link>
      <description>&lt;p&gt;Posted the message '&lt;a href="http://www.programmersheaven.com/mb/phpstuff/374044/374044/ReadMessage.aspx#374044"&gt;mail() function returns backslash escape characters&lt;/a&gt;' on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;When I use the mail()function, the resulting email that is sent contains escape characters in front of apostrophes, etc.&lt;br /&gt;
&lt;br /&gt;
Example:  &lt;strong&gt;I don\'t know why an apostrophe causes escape backslashes to appear in the message being sent. &lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
I'm new to PHP, so I'd really appreciate it if someone would help me out with getting around this problem.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/374044/374044/ReadMessage.aspx#374044</guid>
      <pubDate>Sat, 09 Aug 2008 10:07:18 -0700</pubDate>
    </item>
  </channel>
</rss>