<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'I have a set of mysql results I want to create a new table row with!' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'I have a set of mysql results I want to create a new table row with!' posted on the 'PHP' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Thu, 20 Jun 2013 02:37:54 -0700</pubDate>
    <lastBuildDate>Thu, 20 Jun 2013 02:37:54 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>I have a set of mysql results I want to create a new table row with!</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/421443/421443/i-have-a-set-of-mysql-results-i-want-to-create-a-new-table-row-with/</link>
      <description>This is probely a realy easy answer but i have been serching for a few days for an answer but unsucessfuly so I have posted for an answer! The quicker the better and thanks for any reading!&lt;br /&gt;
 &lt;br /&gt;
 Problem! I have a while loop that loops through mysql database table and i have a list of numbers and for every say 5 or so results I want to put them on a new line on a table!&lt;br /&gt;
 &lt;br /&gt;
 Code so far:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;table&amp;gt;
&amp;lt;tr&amp;gt;
&amp;lt;?
  $q4 = "SELECT * FROM tblnewgameitem WHERE game_id = $row2[game_id] ORDER BY 'game_number' ";
       $r4 = mysql_query($q4);
	
         while($row3 = mysql_fetch_array($r4))
	   {
	      
	   ?&amp;gt;
	     &amp;lt;td&amp;gt;
	     &amp;lt;?
	       if($row3['user_email'] == "")
	       { 
	       ?&amp;gt; 
	        
	          
	           &amp;lt;form action="" method="POST"&amp;gt;
	          &amp;lt;input type="hidden" name="game_id" value="&amp;lt;?echo $row2['game_id'];?&amp;gt;"&amp;gt;
	          &amp;lt;input type="hidden" name="num" value="&amp;lt;? echo $row3['game_number']; ?&amp;gt;"&amp;gt;
                    &amp;lt;input type="submit" value="&amp;lt;?echo $row3['game_number'];?&amp;gt;" name="submit"&amp;gt;
		&amp;lt;/form&amp;gt;
	        
	      
	      
                   		      
	       &amp;lt;?
	  }
	       else
	       {
	      echo " ".$row3['game_number']." ";
	       }
	
	
	       ?&amp;gt;
	       &amp;lt;/td&amp;gt;
	       &amp;lt;?
	   }
	
	   ?&amp;gt;
	   &amp;lt;/tr&amp;gt;
	   &amp;lt;/table&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
It prints out in one row but i want ever so many rows to print out on a new row!&lt;br /&gt;
&lt;br /&gt;
I have tryed for loops etc and nothing works I came close onece but the top line the last number was put on the next line which is no good for me!&lt;br /&gt;
&lt;br /&gt;
Example print out:&lt;br /&gt;
&lt;br /&gt;
1 2 3 4 5 6 7 8 9 10&lt;br /&gt;
&lt;br /&gt;
Example of what I want it to do:&lt;br /&gt;
&lt;br /&gt;
1 2 3 4 5&lt;br /&gt;
6 7 8 9 10&lt;br /&gt;
&lt;br /&gt;
Like i say its probly somthing realy simple iam missing but please help me!&lt;br /&gt;
&lt;br /&gt;
Thank You!&lt;br /&gt;
&lt;br /&gt;
Stephen&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/421443/421443/i-have-a-set-of-mysql-results-i-want-to-create-a-new-table-row-with/</guid>
      <pubDate>Wed, 02 Feb 2011 12:50:38 -0700</pubDate>
      <category>PHP</category>
    </item>
  </channel>
</rss>