Ask a Question related to PHP Development, Design and Development.
-
Daniel Ruscoe #1
Multiple-row table formatting of results
Hi all,
This is probably a simple one if you know what you're doing, but I could
use some code to work from.
I'd like to write a script that will take a single key value from rows
in a MySQL database and place each key value into it's own cell in a
table.
Each row of the table needs to be only five cells across before moving
onto the next row.
How, in PHP, can I create a HTML table that will automatically move to
the next row after five cells are filled?
Many thanks in advance.
- Daniel
Daniel Ruscoe Guest
-
formatting find results in results window or in savedfile
I want a :beer; :-). I want to write an extension that will allow me to format the results returned from a find. I couldn't find anything in... -
Query results don't display properly in results table.IGNORE PREVIOUS
:disgust; I need to display the results of a query. The query runs properly. My problem is having specific results display in specific locations in... -
Query results don't display properly in results table.
:disgust; I need to display the results of a query. The query runs properly. My problem is having specific results display in specific locations in... -
<cfoutput query> and TABLE formatting
HI, I'm trying to output images from a database using <cfoutput query>. That part works fine. But the images display all in one column, one... -
UPDATE MULTIPLE ROWS IN ONE TABLE OBTAINING SUMS FROM ANOTHER TABLE
UPDATE MULTIPLE ROWS IN ONE TABLE OBTAINING SUMS FROM ANOTHER TABLE I need to update a table with distinct sums from another table. I will... -
Michael Fuhr #2
Re: Multiple-row table formatting of results
Daniel Ruscoe <contact@website.plz> writes:
Work on the problem incrementally: leave MySQL out of the picture> I'd like to write a script that will take a single key value from rows
> in a MySQL database and place each key value into it's own cell in a
> table.
>
> Each row of the table needs to be only five cells across before moving
> onto the next row.
>
> How, in PHP, can I create a HTML table that will automatically move to
> the next row after five cells are filled?
until you've solved the table problem. The data source is irrelevant.
Maintain a variable that you increment each time you fill a cell.
When the number hits five, it's time to end the current row and
start a new one. Either reset the cell counter each time you start
a new row or use the modulus (%) operator when you check it.
--
Michael Fuhr
[url]http://www.fuhr.org/~mfuhr/[/url]
Michael Fuhr Guest



Reply With Quote

