<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1038255" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1038255</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/why-do-some-mysql-queries-return-resource-id#comment-1218504</link>
    <description> &lt;p&gt;Thanks for explaining that! It makes much more sense now.&lt;/p&gt;
 </description>
     <pubDate>Sat, 28 Apr 2007 14:33:01 +0000</pubDate>
 <dc:creator>Megan</dc:creator>
 <guid isPermaLink="false">comment 1218504 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/why-do-some-mysql-queries-return-resource-id#comment-1218492</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;brady.k;218489 wrote:&lt;/strong&gt; Haha I meant verify my reasons as to why you have to do it that way.  But ok. &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;&lt;/blockquote&gt;
&lt;p&gt;Well, Megan was printing the $sql variable like it was a string.  In this case, $sql was a Result Set.  That could be similar to a variable that references a database connection or file stream.  You can&#039;t print it (or if you do, weird output will result), you have to send it through methods (such as mysql_fetch_row, mysql_fetch_assoc, mysql_fetch_array, etc).&lt;/p&gt;
 </description>
     <pubDate>Sat, 28 Apr 2007 03:37:20 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1218492 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/why-do-some-mysql-queries-return-resource-id#comment-1218489</link>
    <description> &lt;p&gt;Haha I meant verify my reasons as to why you have to do it that way.  But ok. &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>Sat, 28 Apr 2007 03:06:47 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1218489 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/why-do-some-mysql-queries-return-resource-id#comment-1218486</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;brady.k;218479 wrote:&lt;/strong&gt; If you have a query like that, you need to &quot;structuralize&quot; (I&#039;m not sure what the official word is for it) the data.&lt;/p&gt;
&lt;p&gt;For example:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;$sql = mysql_query(&amp;quot;SELECT name, email FROM wherever LIMIT 5&amp;quot;);&lt;br /&gt;&lt;br /&gt;while ($qry = mysql_fetch_array($sql)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $actual_name = $qry[&amp;#039;name&amp;#039;];&amp;nbsp; // actual name data for this row&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $actual_email = $qry[&amp;#039;email&amp;#039;];&amp;nbsp;&amp;nbsp; // actual email data for this row&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Again, I&#039;m not sure of the exact reasons, but I think it&#039;s similar in method to &#039;pointers&#039; in C.  It returns the location of what you&#039;re looking for, and then you have to pull the actual data out of that memory location.&lt;/p&gt;
&lt;p&gt;(Anyone want to verify this?)&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;That looks right.&lt;/p&gt;
 </description>
     <pubDate>Sat, 28 Apr 2007 01:40:36 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1218486 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/why-do-some-mysql-queries-return-resource-id#comment-1218479</link>
    <description> &lt;p&gt;If you have a query like that, you need to &quot;structuralize&quot; (I&#039;m not sure what the official word is for it) the data.&lt;/p&gt;
&lt;p&gt;For example:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;$sql = mysql_query(&amp;quot;SELECT name, email FROM wherever LIMIT 5&amp;quot;);&lt;br /&gt;&lt;br /&gt;while ($qry = mysql_fetch_array($sql)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $actual_name = $qry[&amp;#039;name&amp;#039;];&amp;nbsp; // actual name data for this row&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $actual_email = $qry[&amp;#039;email&amp;#039;];&amp;nbsp;&amp;nbsp; // actual email data for this row&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Again, I&#039;m not sure of the exact reasons, but I think it&#039;s similar in method to &#039;pointers&#039; in C.  It returns the location of what you&#039;re looking for, and then you have to pull the actual data out of that memory location.&lt;/p&gt;
&lt;p&gt;(Anyone want to verify this?)&lt;/p&gt;
 </description>
     <pubDate>Fri, 27 Apr 2007 23:55:52 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1218479 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/why-do-some-mysql-queries-return-resource-id#comment-1218477</link>
    <description> &lt;p&gt;What was the problem because im getting the same problem?&lt;/p&gt;
 </description>
     <pubDate>Fri, 27 Apr 2007 22:32:36 +0000</pubDate>
 <dc:creator>benf</dc:creator>
 <guid isPermaLink="false">comment 1218477 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/why-do-some-mysql-queries-return-resource-id#comment-1218385</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;Megan;218377 wrote:&lt;/strong&gt; Nevermind, I think I figured it out. Wasn&#039;t using it right &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/doh.png&quot; title=&quot;Doh!&quot; alt=&quot;Doh!&quot; class=&quot;smiley-content&quot; /&gt; (my brain is in no condition to be doing programming today!)&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Mine too... This week I might be experiencing a programmers block... add to that, that I officially have an RSI on my right hand for too much mousing around... PT&#039;s do have cures for those actually, but I still have it though...&lt;/p&gt;
 </description>
     <pubDate>Thu, 26 Apr 2007 01:23:29 +0000</pubDate>
 <dc:creator>demonhale</dc:creator>
 <guid isPermaLink="false">comment 1218385 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/why-do-some-mysql-queries-return-resource-id#comment-1218377</link>
    <description> &lt;p&gt;Nevermind, I think I figured it out. Wasn&#039;t using it right &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/doh.png&quot; title=&quot;Doh!&quot; alt=&quot;Doh!&quot; class=&quot;smiley-content&quot; /&gt; (my brain is in no condition to be doing programming today!)&lt;/p&gt;
 </description>
     <pubDate>Wed, 25 Apr 2007 19:46:45 +0000</pubDate>
 <dc:creator>Megan</dc:creator>
 <guid isPermaLink="false">comment 1218377 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
