<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1040938" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1040938</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Thanks, that was very well</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/sessions-question#comment-1229379</link>
    <description> &lt;p&gt;Thanks, that was very well explained. I have a user table and a messages table with the following fields&lt;/p&gt;
&lt;p&gt;messageid, userto, userfrom, date, subject, message&lt;/p&gt;
&lt;p&gt;I&#039;ll try the query you suggested &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Mar 2008 15:43:19 +0000</pubDate>
 <dc:creator>drew22299</dc:creator>
 <guid isPermaLink="false">comment 1229379 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I don&#039;t think this really</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/sessions-question#comment-1229378</link>
    <description> &lt;p&gt;I don&#039;t think this really has to do with sessions much. It has to do with how you structure your queries and how your tables are setup.&lt;/p&gt;
&lt;p&gt;You need a query that SELECTs the messages based on the user&#039;s ID (because they don&#039;t have the ability to change that). This might work if a message can only be sent to one person. &lt;/p&gt;
&lt;p&gt;&quot;SELECT * FROM Message WHERE To = $userID AND MessageID = $messageID&quot;&lt;/p&gt;
&lt;p&gt;So if Hannah Hacker goes in his address bar and changes the MessageID, if that message ID exists *BUT* it wasn&#039;t addressed to her (the To field), no rows are returned.&lt;/p&gt;
&lt;p&gt;Do you have two tables to handle messages? Something like Message and User2Message? You&#039;d use an INNER JOIN to connect them and do the same type of thing.&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Mar 2008 15:32:09 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1229378 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
