<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1040939" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1040939</link>
    <description></description>
    <language>en</language>
          <item>
    <title>I tried that, and then I</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/a-href-problem-php#comment-1229388</link>
    <description> &lt;p&gt;I tried that, and then I realised that the userid for the user profile that is being viewed by the logged in user, is passed with a link using view_profile.php?id=userid, does this mean I can use something like the following?&lt;/p&gt;
&lt;p&gt;echo &#039;a href=&quot;send_message.php?sendto=&#039; . userid=&#039;$_GET[id] . &#039;&quot;&amp;gt;&#039; . userid=&#039;$_GET[id] . &#039;&#039;;&lt;/p&gt;
&lt;p&gt;Also, it&#039;s not using a mysql_fetch_array on this page, so not sure what the other ways to write this string. I looked at the link for PHP strings but there is nothing about a href and strings there.&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Mar 2008 19:49:39 +0000</pubDate>
 <dc:creator>drew22299</dc:creator>
 <guid isPermaLink="false">comment 1229388 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>You are missing some HTML</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/a-href-problem-php#comment-1229386</link>
    <description> &lt;p&gt;You are missing some HTML tag information, this should work:&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;echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&amp;lt;a href=&quot;send_message.php?sendto=&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;userid&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] . &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&quot;&amp;gt;&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row&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;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] . &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&amp;lt;/a&amp;gt;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;I am pretty sure you are fetching the rows as an array, so you access the user id with $row[&#039;userid&#039;], not $row-&amp;gt;userid.&lt;/p&gt;
&lt;p&gt;You may want to look over the &lt;a href=&quot;http://us3.php.net/manual/en/language.types.string.php&quot; class=&quot;bb-url&quot;&gt;PHP manual page on Strings&lt;/a&gt; for more information on echoing strings as well as concatenation.&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Mar 2008 18:27:16 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1229386 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
