Re(2): Re: can't get $sth -> fetchall_arrayref each one?

2000-11-21 Thread Sherwin Daganato
this goes to the perl dbi mailing list... anyway, *fetchall_arrayref* in your script will (probably) return a list of list (a two dimensional array). and the snippet below is for how you will simply display it. see `perldoc perldsc` for explanation of perl data structures. foreach $i ( 0..$#{ $da

Re: Re: can't get $sth -> fetchall_arrayref each one?

2000-11-21 Thread Angus Lees
On Wed, Nov 22, 2000 at 03:14:13PM +0800, lyf wrote: > this is not work ! > what mean is "(0..$#{$dat})". it means "from 0 to the highest index in @$dat" > ?? 00-11-22 10:57:00 > >try this. I haven't tested it (but i think this will work). > > > >$dat = $sth -> fetchall_arrayref;

Re: Re: can't get $sth -> fetchall_arrayref each one?

2000-11-21 Thread lyf
this is not work ! what mean is "(0..$#{$dat})". ÔÚ 00-11-22 ÉÏÎç 10:57:00 ÄúдµÀ£º >try this. I haven't tested it (but i think this will work). > >$dat = $sth -> fetchall_arrayref; >foreach $i ( 0..$#{ $dat } ) { > foreach $j ( 0..$#{ $dat->[$i] } ) { > print $dat->[$i][$j]; > } >} > >s

Re: Multi-Language

2000-11-21 Thread Ulrike Schepp
Hi Alvar! On Tue, 21 Nov 2000, Alvar Freude wrote: [...] > Because I need PHP only for the phpMyAdmin and phpPgAdmin I installed > PHP 3 (!) as CGI version, because version 4 crashed as CGI ... ;-) Yes php3 works fine, i know... but the folks, delivering the other modules insist on using PHP4 (

problem about runtime config

2000-11-21 Thread Eddie Lau
Hi, As I said before I encountered a problem about one member suddenly entered into other members account as s/he play around on my web community, I try to set something in my httpd.conf: PerlSetEnv EMBPERL_COOKIE_EXPIRES +1h PerlSetEnv EMBPERL_OPTIONS 3092 #2048+1024+16+4 However, after re

Re: can't get $sth -> fetchall_arrayref each one?

2000-11-21 Thread Perl DBI
try this. I haven't tested it (but i think this will work). $dat = $sth -> fetchall_arrayref; foreach $i ( 0..$#{ $dat } ) { foreach $j ( 0..$#{ $dat->[$i] } ) { print $dat->[$i][$j]; } } see `perldoc perldsc` sherwin [EMAIL PROTECTED] writes: ># but here >for($i=0;$i<10;$i++){

can't get $sth -> fetchall_arrayref each one?

2000-11-21 Thread lyf
then connect database,but can't get the database value easy!? the program line like this: $table="allone"; use DBI ; $DSN = 'driver={SQL Server};Server=172.16.166.49;database=myweb;uid=sa;pwd=sa;'; $dbh = DBI->connect("dbi:ODBC:$DSN") or die "$DBI::errstr\n"; $sth = $dbh -> prepare ("SELECT *

Re: Multi-Language

2000-11-21 Thread martin langhoff
Ulrike, I'm including here the commands needed to build apache + php + mod_perl that works allright with imap access and mysql interface. This is the build sequence we use in our RH Linux boxen: - BEGIN APACHE-HEAVY BUILD SEQUENCE-- #untar apache 1.3.12, mod

Re: Multi-Language

2000-11-21 Thread Alvar Freude
Hi, Ulrike Schepp schrieb: > If i first access the database with php (which works well) and afterwards > try to access it with embperl, the actual involved server crashes with > segmentation fault (11) (NOT at server startup time!). I had installed here php4 and mod_perl and embperl all together

Re: Multi-Language

2000-11-21 Thread Gerald Richter
Hi, > > After trying for several hours, i wonder if someone has solved that > configuration-problem: > > Because of multiple applications, we need to support php4 as well as cgi's > and emberl > I don't use PHP, so I don't know what's incompatiple, between DBI and PHP, but if you not already hav

Re: Multi-Language

2000-11-21 Thread Andre Landwehr
On Tue, Nov 21, 2000 at 02:52:18PM +0100, Ulrike Schepp wrote: > Because of multiple applications, we need to support php4 as well as cgi's > and emberl I cannot find the document I read it in right now but if I remember correctly there is an issue about the same names for db-access functions bei

Multi-Language

2000-11-21 Thread Ulrike Schepp
Hi all! After trying for several hours, i wonder if someone has solved that configuration-problem: Because of multiple applications, we need to support php4 as well as cgi's and emberl We used: apache version 1.3.12 embperl1.3b6 mod_perl 1.24 php4.03p1

Re: Embperl - stdout ?

2000-11-21 Thread Gerald Richter
Hi, > > then $output consists HTML entity without HTTP headers. Can i print the > Embperl's HTTP headers to scalar variable? No > While i cannot to compile Embperl > with libfcgi library (and #include ) and thus i want to try If you describe me your problem, or what you have tried so far, I ma

Re: about epchar.c.min ?

2000-11-21 Thread Gerald Richter
> i have get the epchar.c.min and copy to site\lib\html\ >but it didn't seem to work, how can i do install it . >and do anything? make clean cp epchar.c.min epchar.c make install Gerald - Gerald Richterecos electronic communi