RE: Tables

2004-01-22 Thread Charles K. Clarkson
Chris Mortimore <[EMAIL PROTECTED]> wrote: : : Charles <[EMAIL PROTECTED]> replies: : > : > I don't really use tables much any longer, but if : > you could send me an example you think is good, I could : > translate from function oriented to OO and clean it up : > a bit. Or you could just send

RE: Tables

2004-01-22 Thread Chris Mortimore
Rod <[EMAIL PROTECTED]> wrote: : : I am looking for an example of doing tables with cgi.pm. : : I have done some looking but have not found any good : examples. All my code so far uses OOP. The examples I : did find did not use OOP. Charles <[EMAIL PROTECTED]> replies: > > I don't really

RE: Tables

2004-01-22 Thread Charles K. Clarkson
Rod <[EMAIL PROTECTED]> wrote: : : I am looking for an example of doing tables with cgi.pm. : : I have done some looking but have not found any good : examples. All my code so far uses OOP. The examples I : did find did not use OOP. I don't really use tables much any longer, but if you c

Re: Tables in CGI

2002-01-18 Thread Gerry Jones
o: "Roger C Haslock" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Thursday, January 17, 2002 10:51 AM > Subject: Re: Tables in CGI > > > On Tuesday 15 January 2002 18:00, Roger C Haslock wrote: > > > I was watching this correspondance earlier, and wonderi

Re: Tables in CGI

2002-01-17 Thread Roger C Haslock
Sorry. That line should probably be foreach (0..$#columns) Odd message, though. - Roger - - Original Message - From: "Gerry Jones" <[EMAIL PROTECTED]> To: "Roger C Haslock" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 17, 20

Re: Tables in CGI

2002-01-17 Thread Gerry Jones
On Tuesday 15 January 2002 18:00, Roger C Haslock wrote: > I was watching this correspondance earlier, and wondering why you are not > using fetchrow_hashref. I now wonder why you get all the rows of data > bundled into a single array. Does your interface have now way of returning > data one row a

Re: Tables in CGI

2002-01-15 Thread Roger C Haslock
e - From: "Gerry Jones" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 15, 2002 4:11 PM Subject: Re: Tables in CGI > Thanks for your suggestions. I went back and tried some of them with no luck > I'm afraid. Here's my code as it

Re: Tables in CGI

2002-01-15 Thread Gerry Jones
Thanks for your suggestions. I went back and tried some of them with no luck I'm afraid. Here's my code as it is now: print table({-border=>'1', -align=>'CENTER', -valign=>'TOP'}, Tr({-align=>'CENTER', -valign=>'TOP'}, [ th(\@columns),

Re: tables in cgi for briac pilpre'

2002-01-15 Thread Briac Pilpré
Nafiseh Saberi wrote (in perl.beginners): > hi. > hope you be fine. > i reply this question,also. > (tables in cgi) > do you know what is the difference between my answer > and yours,or what is the advantages ?? Your answer is probably faster than mine in execution time since you do

Re: Tables in CGI

2002-01-15 Thread Francesco Scaglioni
I am not a perl expert by a very very long way but I remeber solving something like this once by outputting a separate as I iteratred over the results from a query. Hope it helps F -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tables in CGI

2002-01-15 Thread Briac Pilpré
In article <02011510194302.01235@gandalf>, Gerry Jones wrote: > To recap: I don't need help with DBI or querying DB's, but with printing the > results into a table. I have two arrays: "@columns" (contains the column > names from the queried table), and "@data" (contains every row from that > ta

Re: Tables in CGI

2002-01-15 Thread Gerry Jones
I've deleted the snippet of code I had to display the table since it didn't work. I've tried other methods and they didn't work either. I've seen people using "map" too, but I don't know much about using it. What I meant by consistent was to use Stein's CGI.pm throughout my code. To recap: I

Re: Tables in CGI

2002-01-15 Thread nafiseh saberi
hi. hope you be fine. I am working like you..:) test it... my $sql_main = "SELECT name,famil FROM $main_table where famil='$USERNAME' ORDER BY name"; $sth = $dbh->prepare($sql_main) and print "View Users \n" or die print "Cannot prepare sql statement: $sql_main $DBI:: errstr

Re: Tables in CGI

2002-01-14 Thread Simon K. Chan
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 's in the table to have. Like most of the other modules in Pe

RE: Tables in CGI

2002-01-14 Thread Bob Showalter
> -Original Message- > From: Gerry Jones [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 14, 2002 11:21 AM > To: CGI Beginners > Subject: Tables in CGI > > > 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 d