osdir.com
mailing list archive

Subject: Twice data fetch from DB result - msg#00205

List: php.pear.general

Date: Prev Next Index Thread: Prev Next Index
Pauli, 13:27:16
21. november 2002 (stvrtok)
Greetings!

I asked this question one time, but it remains unanswered. I suppose
that it is because the answer is known only by few PEAR::DB hackers.

I do not know the right official way hot to retrieve data from DB
result twice or more times. I know the last parameter passed to fetchInto()
method, but I'm not sure if this is the most portable way and will work for
all backends.

I was consulting this with Tomas Cox and he noticed me, that it will
probably do not work for all backends. So how to get info if particular
backed support result rewinding and/or twice data retrieval?

If you need me to be more descriptive about this issue, just let me
know.

Thanks,

=Nepto=
____________________________________________________________________________
Ondrej 'Nepto' Jombik, http://www.nepto.sk/ nepto@xxxxxxxxxxxxx


--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

[Mail_mimeDecode] Does it work? Not for me... :(

Hi everybody! I tried questioning my local POP3-Server with PEAR/Net_POP3. Works really fine! Cool! Next Step was to look, what happens, if a message is in MIME format. I sent myself some message including an image as file-attachment. Then i instanciated an object from Mail_mimeDecode and tried decoding the MIME-Message i got. The "struct"-Result i got from it is printed out here (shortened): <snip> stdClass Object ( [headers] => Array ( [] => Array ( [0] => tobias@xxxxxxxxxxxx> [1] => 000 [2] => MX delivery to dot.com2000@xxxxxx [3] => rray [4] => 00b301c29156$785c8720$0200a8c0@dotxpws> [5] => Tobias Schlitt" [6] => Tobias Schlitt" [7] => dot.com2000@xxxxxx> [8] => ttachment added [9] => .0 [10] => ultipart/mixed; boundary="----=_NextPart_000_00B0_01C2915E.D9B471B0" [11] => [12] => ormal [13] => icrosoft Outlook Express 6.00.2800.1123 [14] => roduced By Microsoft MimeOLE V6.00.2800.1123 [15] => (no virus found) [16] => OThis is a multi-part message in MIME format. ) [thu, 21 nov 2002 13] => 06:48 +0100 ) [ctype_primary] => text [ctype_secondary] => plain [body] => ------=_NextPart_000_00B0_01C2915E.D9B471B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hier ist ein Attachment dran.... ------=_NextPart_000_00B0_01C2915E.D9B471B0 Content-Type: image/jpeg; name="rand_1.jpg" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="rand_1.jpg" /9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQ YGBcU FhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCg oKCgo [...]BPaVFwTnx2ovUCMqW6hxBeQUIjsoI+Fz4lJFgRxYfTawGJjp8VM2wsz0KntxqsqPKi vaJEBtpaWV EJVpeQbcEG1ibjVxtfExcDUIJ//Z ------=_NextPart_000_00B0_01C2915E.D9B471B0-- ) Can anyone tell me, what went wrong? Thanks a lot! P.S. The Documentation inside the PEAR website for this classes is wrong in some parts. Would be fine if someone of the website team could contact me for further details! -- <?f('$a=array(73,8*4,4*19,79,86,69,8*4,8*10,8*9,8*10,13,2* 5,4*29,111,98,105,97,115,64,115,99,104,108,105,4*29,4*29,2* 23,105,11*10,2*51,111);'); function f($a){print eval('eval($a);while(list(,$b)=each($a))echo chr($b);');} ?> -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Next Message by Date: click to view message preview

Re: RE : RE : RE : [PEAR] [QuickForm] file upload and rules

le 21/11/02 10:15, Yann (zebulon-fr) à yann@xxxxxxxxxxxxxx a écrit : > Now, there is a new bug in the last release 2.5. The rules doesn't work > for the addElementGroup. > > For exemple : > ... > $form->addElementGroup($radio, 'Votre sexe', 'sexe'); > $form->addRule('sexe', 'Veuillez indiquer votre sexe', 'required'); ... Use addGroupRule instead. look at the example n# 7 in the docs directory. Bertrand Mansion Mamasam -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Previous Message by Thread: click to view message preview

[Mail_mimeDecode] Does it work? Not for me... :(

Hi everybody! I tried questioning my local POP3-Server with PEAR/Net_POP3. Works really fine! Cool! Next Step was to look, what happens, if a message is in MIME format. I sent myself some message including an image as file-attachment. Then i instanciated an object from Mail_mimeDecode and tried decoding the MIME-Message i got. The "struct"-Result i got from it is printed out here (shortened): <snip> stdClass Object ( [headers] => Array ( [] => Array ( [0] => tobias@xxxxxxxxxxxx> [1] => 000 [2] => MX delivery to dot.com2000@xxxxxx [3] => rray [4] => 00b301c29156$785c8720$0200a8c0@dotxpws> [5] => Tobias Schlitt" [6] => Tobias Schlitt" [7] => dot.com2000@xxxxxx> [8] => ttachment added [9] => .0 [10] => ultipart/mixed; boundary="----=_NextPart_000_00B0_01C2915E.D9B471B0" [11] => [12] => ormal [13] => icrosoft Outlook Express 6.00.2800.1123 [14] => roduced By Microsoft MimeOLE V6.00.2800.1123 [15] => (no virus found) [16] => OThis is a multi-part message in MIME format. ) [thu, 21 nov 2002 13] => 06:48 +0100 ) [ctype_primary] => text [ctype_secondary] => plain [body] => ------=_NextPart_000_00B0_01C2915E.D9B471B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hier ist ein Attachment dran.... ------=_NextPart_000_00B0_01C2915E.D9B471B0 Content-Type: image/jpeg; name="rand_1.jpg" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="rand_1.jpg" /9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQ YGBcU FhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCg oKCgo [...]BPaVFwTnx2ovUCMqW6hxBeQUIjsoI+Fz4lJFgRxYfTawGJjp8VM2wsz0KntxqsqPKi vaJEBtpaWV EJVpeQbcEG1ibjVxtfExcDUIJ//Z ------=_NextPart_000_00B0_01C2915E.D9B471B0-- ) Can anyone tell me, what went wrong? Thanks a lot! P.S. The Documentation inside the PEAR website for this classes is wrong in some parts. Would be fine if someone of the website team could contact me for further details! -- <?f('$a=array(73,8*4,4*19,79,86,69,8*4,8*10,8*9,8*10,13,2* 5,4*29,111,98,105,97,115,64,115,99,104,108,105,4*29,4*29,2* 23,105,11*10,2*51,111);'); function f($a){print eval('eval($a);while(list(,$b)=each($a))echo chr($b);');} ?> -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Next Message by Thread: click to view message preview

Date_Calc::weekOfYear() bug?

Maxim, 20:46:27 21. november 2002 (stvrtok) Greetings. Imagine the following script: <?php require_once 'Date/Calc.php'; echo Date_Calc::dayOfWeek(17, 11, 2002).' / '.Date_Calc::weekOfYear(17, 11, 2002)."\n"; echo Date_Calc::dayOfWeek(18, 11, 2002).' / '.Date_Calc::weekOfYear(18, 11, 2002)."\n"; echo Date_Calc::dayOfWeek(19, 11, 2002).' / '.Date_Calc::weekOfYear(19, 11, 2002)."\n"; echo Date_Calc::dayOfWeek(20, 11, 2002).' / '.Date_Calc::weekOfYear(20, 11, 2002)."\n"; ?> Output is: 20:48:06 Maxim [~/tmp]: php -q test.php 0 / 46 1 / 46 2 / 47 3 / 47 Press any key to continue... So 18th November was Monday (1) in 46th week. 19th November was Tuesday (2) in 47th week. Why week has changed between Monday and Tuesday? I suppose, that week changes after Saturday or Sunday, no matters. Surely NOT after the Monday. =Nepto= ____________________________________________________________________________ Ondrej 'Nepto' Jombik, perl -le '$_=1;(1x$_)!~/^(11+)\1+$/&&print while$_++' -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by