<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1022762" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1022762</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/drawing-out-data-mysql-db#comment-1140512</link>
    <description> &lt;p&gt;ok. ignoring the discussion about the time difference....&lt;/p&gt;
&lt;p&gt;eskater: i know of two that will tell you the line number and column number if you want. however they are programming editors so they do much more than php,... they also do html, js, xhtml, c, c++, java, perl, scheme, lisp, python, and a large number of others i can&#039;t remember at this time.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.xemacs.com&quot; class=&quot;bb-url&quot;&gt;xemacs.com&lt;/a&gt; is the one i prefer. you might prefer emacs, found at &lt;a href=&quot;http://www.gnu.org&quot; class=&quot;bb-url&quot;&gt;gnu.org&lt;/a&gt; (note, this is a posix oriented site, however, even though both of these were originally posix, they both have windows ports.)&lt;/p&gt;
&lt;p&gt;if you haven&#039;t switched to mark&#039;s suggestion of a while loop, i&#039;d like to state that if you&#039;re checking that the number of rows is greater than 0, that&#039;s fine, but if you want to use a foreach, you need to have an array. a for loop can use the number of rows, but a foreach is on an array, not a number. that may have been your error.&lt;/p&gt;
&lt;p&gt;mark&#039;s suggestion removes the need for the checking on the number of rows, as well as looping regaurdless&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Nov 2003 04:25:33 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1140512 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/drawing-out-data-mysql-db#comment-1140504</link>
    <description> &lt;p&gt;I think the only time differnce is a few extra low level instructions, which cannot really be timed.&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Nov 2003 02:34:59 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1140504 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/drawing-out-data-mysql-db#comment-1140503</link>
    <description> &lt;p&gt;lol, yes, I think I am saying that it&#039;s an equally fine choice. &lt;/p&gt;
&lt;p&gt;mysql_fetch_row();&lt;br /&gt;
mysql_fetch_assoc();&lt;br /&gt;
mysql_fetch_array();&lt;/p&gt;
&lt;p&gt;They all seem to do relatively the same thing, depending on what you want to have happen. You can limit mysql_fetch_array to mimic either mysql_fetch_row &lt;em&gt;mysql_fetch_array($sql,MYSQL_NUM)&lt;/em&gt; or mysql_fetch_assoc &lt;em&gt;mysql_fetch_array($sql,MYSQL_ASSOC)&lt;/em&gt; -- it seems that the specialized fetches came about to replace the second argument for mysql_fetch_array itself.&lt;/p&gt;
&lt;p&gt;I don&#039;t see anything that indicates that anything is significantly slower or faster, the key word being significantly. I would assume that you can use whichever you please that works best for you and your script.&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Nov 2003 02:10:56 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1140503 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/drawing-out-data-mysql-db#comment-1140502</link>
    <description> &lt;p&gt;Suzanne I think you got kyle and i both confused here&lt;br /&gt;
Are you saying we should use it?&lt;br /&gt;
I&#039;ve used it since I found out about it about a year ago.&lt;br /&gt;
Of course, I can&#039;t tell the difference between 1.04s and 1.2s in execution time (arbitrary numbers, no meaning)&lt;br /&gt;
&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>Wed, 12 Nov 2003 02:00:21 +0000</pubDate>
 <dc:creator>nike_guy_man</dc:creator>
 <guid isPermaLink="false">comment 1140502 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/drawing-out-data-mysql-db#comment-1140501</link>
    <description> &lt;p&gt;umm yea....lol&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Nov 2003 01:57:50 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1140501 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/drawing-out-data-mysql-db#comment-1140498</link>
    <description> &lt;p&gt;Wouldn&#039;t Kyle&#039;s script here require mysql_fetch_array, though?&lt;/p&gt;
&lt;p&gt;Edit: hmmm... nope. Cool!&lt;/p&gt;
&lt;p&gt;Interesting the release of the data, too.&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Nov 2003 00:58:56 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1140498 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/drawing-out-data-mysql-db#comment-1140497</link>
    <description> &lt;p&gt;Specifically, it seems to not do anything faster in particular, and in fact may be SLOWER... if you believe php.net, that is... &lt;a href=&quot;http://ca2.php.net/manual/en/function.mysql-fetch-assoc.php&quot; class=&quot;bb-url&quot;&gt;http://ca2.php.net/manual/en/function.mysql-fetch-assoc.php&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Interesting, though. Reading it again to understand the subtleties... &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;Further edit: seems that it&#039;s &lt;em&gt;not significantly slower&lt;/em&gt; than fetching one row at a time... Hmm. That is it&#039;s a bit (maybe?) slower than &lt;a href=&quot;http://ca2.php.net/manual/en/function.mysql-fetch-row.php&quot; class=&quot;bb-url&quot;&gt;http://ca2.php.net/manual/en/function.mysql-fetch-row.php&lt;/a&gt; ? *sigh* I&#039;m officially confused.&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Nov 2003 00:57:18 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1140497 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/drawing-out-data-mysql-db#comment-1140496</link>
    <description> &lt;p&gt;It was a while ago, but &lt;strong&gt;mysql_fetch_array&lt;/strong&gt; takes a full array and assigns all rows as $var[&#039;row&#039;] and $var[&#039;#&#039;] with the number being the row number&lt;br /&gt;
&lt;strong&gt;mysql_fetch_assoc&lt;/strong&gt; takes an associative array, just $var[&#039;row&#039;]&lt;br /&gt;
Right?&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Nov 2003 00:55:23 +0000</pubDate>
 <dc:creator>nike_guy_man</dc:creator>
 <guid isPermaLink="false">comment 1140496 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/drawing-out-data-mysql-db#comment-1140495</link>
    <description> &lt;p&gt;Where would you get stats on that? I&#039;m curious to read more about this.&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Nov 2003 00:53:06 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1140495 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/drawing-out-data-mysql-db#comment-1140493</link>
    <description> &lt;p&gt;Doesn&#039;t &lt;strong&gt;mysql_fetch_array&lt;/strong&gt; use up twice the CPU required for &lt;strong&gt;mysql_fetch_assoc&lt;/strong&gt;?&lt;br /&gt;
I only use mysql_fetch_assoc now...&lt;br /&gt;
I&#039;d also suggest putting an extra \n at the end so you can see between the different entries. Either that, or put it in a table&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Nov 2003 00:47:24 +0000</pubDate>
 <dc:creator>nike_guy_man</dc:creator>
 <guid isPermaLink="false">comment 1140493 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
