<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1023539" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1023539</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysqlfetcharray-error#comment-1144673</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;druagord wrote:&lt;/strong&gt; with fetch_row you  have to use $qry[0] $qry[1] with fetch_array you can use $qry[&#039;header&#039;] and $qry[&#039;body&#039;]&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;fetch_row returns a number indexed array, fetch_assoc returns a string indexed hash, fetch_array returns both.&lt;/p&gt;
 </description>
     <pubDate>Tue, 20 Jan 2004 04:50:54 +0000</pubDate>
 <dc:creator>ROB</dc:creator>
 <guid isPermaLink="false">comment 1144673 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysqlfetcharray-error#comment-1144645</link>
    <description> &lt;p&gt;I thought it was something like that, Druagord, I&#039;ve amended my code sample to accomodate that.&lt;/p&gt;
 </description>
     <pubDate>Mon, 19 Jan 2004 16:55:46 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1144645 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysqlfetcharray-error#comment-1144641</link>
    <description> &lt;p&gt;Thanks, suzanne...&lt;/p&gt;
&lt;p&gt;That&#039;s the script i was referring to, and didn&#039;t understand what was wrong&lt;/p&gt;
 </description>
     <pubDate>Mon, 19 Jan 2004 16:42:29 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1144641 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysqlfetcharray-error#comment-1144628</link>
    <description> &lt;p&gt;with fetch_row you  have to use $qry[0] $qry[1] with fetch_array you can use $qry[&#039;header&#039;] and $qry[&#039;body&#039;]&lt;/p&gt;
 </description>
     <pubDate>Mon, 19 Jan 2004 15:04:44 +0000</pubDate>
 <dc:creator>druagord</dc:creator>
 <guid isPermaLink="false">comment 1144628 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysqlfetcharray-error#comment-1144601</link>
    <description> &lt;p&gt;also, even though I believe the php manual claims theres little performance difference, you should use mysql_fetch_assoc or mysql_fetch_row unless you specifically need both, because I&#039;ve benchmarked them and mysql_fetch_array is significanlty slower.&lt;/p&gt;
 </description>
     <pubDate>Mon, 19 Jan 2004 05:08:30 +0000</pubDate>
 <dc:creator>ROB</dc:creator>
 <guid isPermaLink="false">comment 1144601 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysqlfetcharray-error#comment-1144598</link>
    <description> &lt;p&gt;&lt;a href=&quot;http://www.webmaster-forums.net/showthread.php?t=22762&amp;amp;highlight=mysql_fetch_row+mysql_fetch_array&quot; class=&quot;bb-url&quot;&gt;http://www.webmaster-forums.net/showthread.php?t=22762&amp;amp;highlight=mysql_fetch_row+mysql_fetch_array&lt;/a&gt; from the last time we talked about this, in case you need the reference. &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;
&lt;p&gt;I tend to code it differently, so you may be getting an error in something I can&#039;t see because I&#039;m not familiar with it:&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;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;...&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;connection&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;... &lt;br /&gt; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_query&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;SELECT * FROM data\&quot;); &lt;br /&gt;// this *should* work, but I use mysql_fetch_array usually&lt;br /&gt;while (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$qry&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = mysql_fetch_row(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)) { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$header&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$qry&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$body&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$qry&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&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;;&lt;br /&gt;&lt;br /&gt;echo&amp;lt;&amp;lt;&amp;lt;DISPLAY&lt;br /&gt;&amp;lt;p class=\&quot;title\&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$header&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$body&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p class=\&quot;line\&quot;&amp;gt;---------------&amp;lt;/p&amp;gt;&lt;br /&gt;DISPLAY; &lt;br /&gt;&lt;br /&gt;}&amp;nbsp; &lt;br /&gt;&lt;br /&gt;mysql_close(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$dbh&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;In general, it looks fine, perhaps there is no data returned? Put in some error messages and see what you get?&lt;/p&gt;
 </description>
     <pubDate>Mon, 19 Jan 2004 00:48:40 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1144598 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysqlfetcharray-error#comment-1144597</link>
    <description> &lt;p&gt;lol _fetch_row&lt;/p&gt;
&lt;p&gt;sorry.&lt;/p&gt;
 </description>
     <pubDate>Mon, 19 Jan 2004 00:32:48 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1144597 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysqlfetcharray-error#comment-1144596</link>
    <description> &lt;p&gt;mysql_fetch_array?&lt;/p&gt;
 </description>
     <pubDate>Mon, 19 Jan 2004 00:27:13 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1144596 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
