Hiya Gerry,

Is this db a relational database (like MySQL) ??  If so, have you heard of the DBI 
module?  Using
it, you can query the db and return the info in an array.  Then, using a while loop, 
your script
can "determine" how many <TD>'s in the table to have.  Like most of the other modules 
in Perl, the
DBI module is quite well documented.

Hope this helps.  Try posting a snippet of what you've got and the rest of us can 
probably provide
more specific help.

######################################
--- Gerry Jones <[EMAIL PROTECTED]> wrote:
> I've been tormented by a very small problem. I'm trying to display the 
> results of a database query using CGI. What I've done is create subroutines 
> to return the names of the table columns and another to return the data, both 
> of which are stored in seperate arrays. So I have my data, but the table just 
> doesn't come out right. The problem is the arrays can be of different sizes, 
> and I'm finding it really difficult to code a dynamic table using CGI. I 
> could do it in pure HTML easily, but that's not the point: I'm trying to keep 
> my code consistent. I've searched the 'net but the solutions I found didn't 
> work.
> 
> Thanks in advance,
> 
> Gerry.
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


=====
#########################################
Warmest Regards,
Simon K. Chan - [EMAIL PROTECTED]

"Great spirits have always encountered violent opposition from mediocre minds."

-Albert Einstein

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to