Re: [PHP] Sepating MySQL result set into html tables

2008-09-30 Thread tedd
At 8:46 PM +0300 9/30/08, Thodoris wrote: At 8:32 PM +0300 9/26/08, Thodoris wrote: Yes it will but I will make this better along with other things as long as I find the needed algorithm. -- Thodoris http://webbytedd.com/bbb/paging/ The code is there. Cheers, tedd Thanks Tedd this do

Re: [PHP] Sepating MySQL result set into html tables

2008-09-30 Thread Thodoris
At 8:32 PM +0300 9/26/08, Thodoris wrote: Yes it will but I will make this better along with other things as long as I find the needed algorithm. -- Thodoris http://webbytedd.com/bbb/paging/ The code is there. Cheers, tedd Thanks Tedd this does the paging but it wasn't what I asked

Re: [PHP] Sepating MySQL result set into html tables

2008-09-28 Thread tedd
At 8:32 PM +0300 9/26/08, Thodoris wrote: Yes it will but I will make this better along with other things as long as I find the needed algorithm. -- Thodoris http://webbytedd.com/bbb/paging/ The code is there. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http:/

Re: [PHP] Sepating MySQL result set into html tables

2008-09-27 Thread Thodoris
O/H Robert Cummings ??: On Fri, 2008-09-26 at 14:41 -0400, Robert Cummings wrote: On Fri, 2008-09-26 at 21:23 +0300, Thodoris wrote: On Fri, 2008-09-26 at 13:50 -0400, [EMAIL PROTECTED] wrote: Might I suggest you count the fields and divide it by the cols you want to dis

Re: [PHP] Sepating MySQL result set into html tables

2008-09-26 Thread Robert Cummings
On Fri, 2008-09-26 at 14:41 -0400, Robert Cummings wrote: > On Fri, 2008-09-26 at 21:23 +0300, Thodoris wrote: > > > On Fri, 2008-09-26 at 13:50 -0400, [EMAIL PROTECTED] wrote: > > > > > >> Might I suggest you count the fields and divide it by the cols you want > > >> to display? > > >> Exampl

Re: [PHP] Sepating MySQL result set into html tables

2008-09-26 Thread Eric Butera
On Fri, Sep 26, 2008 at 4:43 PM, Thodoris <[EMAIL PROTECTED]> wrote: > > On Fri, Sep 26, 2008 at 2:41 PM, Robert Cummings <[EMAIL PROTECTED]> > wrote: > > > On Fri, 2008-09-26 at 21:23 +0300, Thodoris wrote: > > > On Fri, 2008-09-26 at 13:50 -0400, [EMAIL PROTECTED] wrote: > > > > Might I suggest y

Re: [PHP] Sepating MySQL result set into html tables

2008-09-26 Thread Thodoris
On Fri, Sep 26, 2008 at 2:41 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: On Fri, 2008-09-26 at 21:23 +0300, Thodoris wrote: On Fri, 2008-09-26 at 13:50 -0400, [EMAIL PROTECTED] wrote: Might I suggest you count the fields and divide it by the cols you want to display? Exa

Re: [PHP] Sepating MySQL result set into html tables

2008-09-26 Thread Eric Butera
On Fri, Sep 26, 2008 at 2:41 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Fri, 2008-09-26 at 21:23 +0300, Thodoris wrote: >> > On Fri, 2008-09-26 at 13:50 -0400, [EMAIL PROTECTED] wrote: >> > >> >> Might I suggest you count the fields and divide it by the cols you want >> >> to display? >>

Re: [PHP] Sepating MySQL result set into html tables

2008-09-26 Thread Robert Cummings
On Fri, 2008-09-26 at 21:23 +0300, Thodoris wrote: > > On Fri, 2008-09-26 at 13:50 -0400, [EMAIL PROTECTED] wrote: > > > >> Might I suggest you count the fields and divide it by the cols you want to > >> display? > >> Example > >> $forest = mysql_query("SELECT * FROM your_table"); > >> $gump =

Re: [PHP] Sepating MySQL result set into html tables

2008-09-26 Thread Thodoris
On Fri, 2008-09-26 at 13:50 -0400, [EMAIL PROTECTED] wrote: Might I suggest you count the fields and divide it by the cols you want to display? Example $forest = mysql_query("SELECT * FROM your_table"); $gump = mysql_num_fields($forest); First of all the problem is with the rows not

RE: [PHP] Sepating MySQL result set into html tables

2008-09-26 Thread Robert Cummings
On Fri, 2008-09-26 at 13:50 -0400, [EMAIL PROTECTED] wrote: > Might I suggest you count the fields and divide it by the cols you want to > display? > Example > $forest = mysql_query("SELECT * FROM your_table"); > $gump = mysql_num_fields($forest); > > Because I know my table contains 15 rows I c

RE: [PHP] Sepating MySQL result set into html tables

2008-09-26 Thread admin
Might I suggest you count the fields and divide it by the cols you want to display? Example $forest = mysql_query("SELECT * FROM your_table"); $gump = mysql_num_fields($forest); Because I know my table contains 15 rows I can do this. $tulip = floor($gump /5); I know how many fields to display be

Re: [PHP] Sepating MySQL result set into html tables

2008-09-26 Thread admin
Might I suggest you count the fields and divide it by the cols you want to display? Example: $forest = mysql_query("SELECT * FROM your_table"); $gump = mysql_num_fields($forest); Because I know my table contains 15 rows I can do this. $tulip = floor($gump /5); I know how many fields to display

Re: [PHP] Sepating MySQL result set into html tables

2008-09-26 Thread Thodoris
Thodoris wrote: Hello everybody, I have a mysql result set that I want to print out in an html table. But some times it gets so big that I will probably need to separate it in to multiple ones. I wrote a function that separates the result set into three ones like this: ... But I really

Re: [PHP] Sepating MySQL result set into html tables

2008-09-26 Thread b
Thodoris wrote: Hello everybody, I have a mysql result set that I want to print out in an html table. But some times it gets so big that I will probably need to separate it in to multiple ones. I wrote a function that separates the result set into three ones like this: ... But I really n

[PHP] Sepating MySQL result set into html tables

2008-09-26 Thread Thodoris
Hello everybody, I have a mysql result set that I want to print out in an html table. But some times it gets so big that I will probably need to separate it in to multiple ones. I wrote a function that separates the result set into three ones like this: function showTable($columnNames,$dat