Re: [PHP] Pear DB

2008-07-10 Thread Lester Caine
John Comerford wrote: Hi Folks, I have just successfully lobbied for the company I work for to use PHP/MySQL for our next website. My Question is regarding DB abstraction . I know there is a Pear DB module, is this the best to use ? I have a vague memory of reading somewhere that there is

RE: [PHP] Pear DB

2008-07-10 Thread Alex Chamberlain
> Hi Folks, > > I have just successfully lobbied for the company I work for to use > PHP/MySQL for our next website. My Question is regarding DB abstraction > . I know there is a Pear DB module, is this the best to use ? I have a > vague memory of reading somewhere that there is a newer lib o

Re: [PHP] Pear DB

2008-07-10 Thread Larry Garfield
PEAR::DB was deprecated years ago. Do not use it. PEAR::MDB2 is the preferred PEAR wrapper these days. Personally, I skip them both and prefer to go straight to PDO, available in PHP 5. http://www.php.net/pdo On Thursday 10 July 2008 1:47:34 am John Comerford wrote: > Hi Folks, > > I ha

Re: [PHP] Pear DB

2008-07-10 Thread Jason Norwood-Young
On Thu, 2008-07-10 at 16:47 +1000, John Comerford wrote: > Hi Folks, > > I have just successfully lobbied for the company I work for to use > PHP/MySQL for our next website. My Question is regarding DB abstraction > . I know there is a Pear DB module, is this the best to use ? I have a > va

[PHP] Pear DB

2008-07-09 Thread John Comerford
Hi Folks, I have just successfully lobbied for the company I work for to use PHP/MySQL for our next website. My Question is regarding DB abstraction . I know there is a Pear DB module, is this the best to use ? I have a vague memory of reading somewhere that there is a newer lib or somethin

Re: [PHP] PEAR::DB and PDO

2006-08-01 Thread Ezra Nugroho
I've used PDO, PEAR::DB, and ADOdb. I like ADOdb the most. You'd love it's new Active Record extension. On Tue, 2006-08-01 at 18:47 +0100, Yannick Warnier wrote: > Hi there, > > I will soon need to include a database abstraction layer in my company's > software and I am looking for the best ch

Re: [PHP] PEAR::DB and PDO

2006-08-01 Thread Lester Caine
Yannick Warnier wrote: Hi there, I will soon need to include a database abstraction layer in my company's software and I am looking for the best choice to make. The software is promoted as working with PHP4, so I wouldn't use PDO, although I see that a PHP4 implementation of PDO exists [1] and

[PHP] PEAR::DB and PDO

2006-08-01 Thread Yannick Warnier
Hi there, I will soon need to include a database abstraction layer in my company's software and I am looking for the best choice to make. The software is promoted as working with PHP4, so I wouldn't use PDO, although I see that a PHP4 implementation of PDO exists [1] and I could use this one (any

Re: [PHP] Pear DB and memcached

2006-06-06 Thread Richard Lynch
Resources cannot be stored from script to script. PHP cleans them up and nukes their contents at script end. This is what all the "frameworks" folks are trying to "fix"... :-) :-) :-) On Tue, June 6, 2006 8:55 am, Ruben Rubio Rey wrote: > Hi, > > Im having a trouble using memcached with pear db

[PHP] Pear DB and memcached

2006-06-06 Thread Ruben Rubio Rey
Hi, Im having a trouble using memcached with pear db. When im using memcache to store and retrieve an string, all works fine. When Im using memcache to store a pear db resulset, it does not work!! This retrieves data but pear::db does not understand it. I really dont know Any ideas? Thanks in

Re: [PHP] PEAR DB nextId() sequences

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 2:48 pm, Drew Butler wrote: > Just had a quick question for anyone out there. I've been using PEAR's > DB > object for quite a while, as I have to simultaneously work with both > MySQL > and PostgreSQL. Currently I use the nextID() method to find new IDs > for the > rows that I

[PHP] PEAR DB nextId() sequences

2006-05-04 Thread Drew Butler
Hey guys, Just had a quick question for anyone out there. I've been using PEAR's DB object for quite a while, as I have to simultaneously work with both MySQL and PostgreSQL. Currently I use the nextID() method to find new IDs for the rows that I insert, but am running into an issue with its sequ

[PHP] PEAR DB issue

2005-07-23 Thread Chris Boget
I'm using PEAR::DB to connect to a MS SQL Server 2000. I'm attempting to run the following query: SELECT * FROM myTable FOR XML AUTO, ELEMENTS When I run the above query using the Query Analyzer, I get back the results as expected. However, when I try to run the same query using PEAR, I get the

[PHP] PEAR DB and MSSQL

2005-06-13 Thread php
I originally submitted this to the PHP DB mailing list. Hopefully someone on this list not on the other can give me some help. My company runs a Linux based PHP website with a MySQL database backend. We also have several MSSQL databases deployed throughout the organization. One of our MSSQL dat

[PHP] Pear DB class not PHP5 strict compatible?

2005-03-07 Thread Richard Davey
Hi, Having heard good things about the PEAR DB package I wanted to try it out on a new project. I'm using PHP 5.0.3, ran the go-pear and installed the latest version but upon including it in my script it brings up rafts of errors such as: Strict Standards: Assigning the return value o

Re: [PHP] PEAR DB vs ADODB

2004-12-30 Thread Lester Caine
Matthew Weier O'Phinney wrote: There's not much benefit or point in PEAR developers developing for a non-PEAR library -- the idea is to create a set of high quality libraries following a common set of coding standards and practices; compatibility with outside libraries doesn't make sense if those l

Re: [PHP] PEAR DB vs ADODB

2004-12-29 Thread Matthew Weier O'Phinney
* [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Haven't done much with either of them, besides reading docs, but I'd > > lean towards ADODB for its exception handling(with php5), if you > > need error handling. > > > > Having that said, I haven't really a clue what I'm talking about in > > this regard

Re: [PHP] PEAR DB vs ADODB

2004-12-28 Thread daniel
> Haven't done much with either of them, besides reading docs, but I'd > lean towards ADODB for its exception handling(with php5), if you need > error handling. > > Having that said, I haven't really a clue what I'm talking about in > this regard, so I'll be listening in with interest. > I'm assum

Re: [PHP] PEAR DB vs ADODB

2004-12-28 Thread Rory Browne
Haven't done much with either of them, besides reading docs, but I'd lean towards ADODB for its exception handling(with php5), if you need error handling. Having that said, I haven't really a clue what I'm talking about in this regard, so I'll be listening in with interest. On Wed, 29 Dec 2004 1

[PHP] PEAR DB vs ADODB

2004-12-28 Thread daniel
Hi there I am in a bit of a dilemma, I have been leaning towards ADODB for its speed, but I amliking to use some pear components that only handle pear db etc .. Honest opinions, I am doingweb applications and building a little framework for it, will I notice any performance differences if Iuse DB

[PHP] PEAR DB & PAGER & array_push

2004-11-13 Thread valerie17
Salut! is there a good way to present data from table (many fields / not only one) into $itemData instead of array_push (line 12 .. 16) ? And how come the result always has space (kinda ) and it's moving upper and upper when I click Next. Correction to my code below would be very welcome . 1 quer

[PHP] PEAR::DB is great but is sooooo SLOW !

2004-05-16 Thread greg
Hello, I've just performed a few tests when using PEAR::DB and the results weren't good at all. If I compare a script using PEAR::DB with a script using standard functions (and which supports mysql, pgsql and sqlite databases), the script using PEAR::DB is 10 times slower than the other. In one of

[PHP] PEAR DB 1.6.0 has been released

2004-02-19 Thread Daniel Convissor
[This has be cross-posted. Be careful when following up, please.] Greetings: Crack open the beer, PEAR DB 1.6.0 is here! (Hey, I'm a bit giddy with excitement that my intense work during the past seven weeks has come to fruition.) For those unfamiliar with PEAR DB, it's a package of PHP classes

[PHP] PEAR DB 1.6.0RC5 released, please test it

2004-02-07 Thread Daniel Convissor
Hello Again: Another release of PEAR DB was made yesterday, 1.6.0RC5. The most important change was fixing the bug for people who use arrays for the DSN information when connecting. It also adds a new method called quoteIdentifier(), which is used for delimiting identifiers (such as field names

[PHP] PEAR DB 1.6.0RC4 released

2004-02-04 Thread Daniel Convissor
Hi Folks: I just released version 1.6.0RC4 of PEAR DB. Several things have been fixed since RC1 which is included with the latest PHP RC release. Also, if you're using 1.5.0 variants or earlier, definitely check out the new version for loads of enhancements and way fewer bugs. I've also spent a

[PHP] PEAR DB::isError acting strange

2004-02-03 Thread David Clymer
I'm having some problems with the DB::isError function identifying a non-object as an error object (or so it seems). I'm using postgreSQL 7.3.x. The relevant code is below: /***[ my code start ]***/ $sql_queries = array();

Re: [PHP] PEAR DB flipped fetch mode

2003-09-13 Thread Curt Zirzow
* Thus wrote Dan Phiffer ([EMAIL PROTECTED]): > Could somebody explain (or point me to some online docs) the usage of > DB_FETCHMODE_FLIPPED, defined by PEAR DB? I feel like I've seen it mentioned > on the PEAR site, but somehow I can't find it now. > > I'm pretty sure it's on a page linked from h

[PHP] PEAR DB flipped fetch mode

2003-09-10 Thread Dan Phiffer
Could somebody explain (or point me to some online docs) the usage of DB_FETCHMODE_FLIPPED, defined by PEAR DB? I feel like I've seen it mentioned on the PEAR site, but somehow I can't find it now. I'm pretty sure it's on a page linked from here: http://pear.php.net/manual/en/package.database.php

[PHP] PEAR DB - PHPMyAdmin

2003-03-28 Thread Mike
Anyone intersted in helping integrate PHPMyAdmin to PEAR? It's seperate from phpMyAdmin right now, but might be integrated later... -Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PEAR DB Error

2003-03-13 Thread Michael A Smith
Hello, I am using a script running PEAR. I did a: $db = DB::connect($database_string); at I get the error: Fatal error: Undefined class name 'db' in /var/www/html/prattcms/variables/global.inc.php on line 17 Any ideas? -Michael -- Some people's minds are like cement; all mixed up and permanentl

[PHP] PEAR DB problem

2002-10-01 Thread Peter Hall
Hi, I'm a bit new to mySQL. I got my program working fine locally, but it doesn't work when I upload it to my ISP. db.php and pear.php couldn't be found on my server when I first ran it. I uploaded them, but could that be part of my problem? The following code is returning "DB Error: not found":

RE: [PHP] PEAR DB class

2002-02-14 Thread Matthew Walker
Sure is legal. I use it all /over/ the place. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Gary [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 2:26 PM To: [EMAIL PROTECTED] Subject: [PHP] PEAR DB class Hi all, Before I get

[PHP] PEAR DB class

2002-02-14 Thread Gary
Hi all, Before I get started and have to figure out a problem. Is it legal in PEAR DB to connect like this $dbh = DB::connect("mysql://$user:$pass@$host/$dname); where user, password, host and database names are coming from an include? TIA Gary -- PHP General Mailing List (http://www.php.n

RE: [PHP] PEAR DB Results

2001-10-31 Thread Jeremy Allen
neral Mailing List Subject: [PHP] PEAR DB Results I am trying to do a joined query using PEAR DB? My code looks something like this: $sql = "SELECT wwwpages.pid,wwwpages.name,media.pid,media.name FROM wwwpages, media WHERE wwwpages.pid = '$pid'"; if(DB::isError($result

[PHP] PEAR DB Results

2001-10-31 Thread Ralph Guzman
I am trying to do a joined query using PEAR DB? My code looks something like this: $sql = "SELECT wwwpages.pid,wwwpages.name,media.pid,media.name FROM wwwpages, media WHERE wwwpages.pid = '$pid'"; if(DB::isError($result = $db->query($sql))){ echo "ERROR:" . DB::errorMessage($result); } else { w

RE: [PHP] PEAR DB Questions

2001-09-26 Thread Matthew Walker
Thanks. That will work quite nicely. -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 26, 2001 1:20 PM To: Matthew Walker; [EMAIL PROTECTED] Subject: RE: [PHP] PEAR DB Questions don't know about pear, but in case you can't do it,

RE: [PHP] PEAR DB Questions

2001-09-26 Thread Jack Dempsey
--Original Message- From: Matthew Walker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 26, 2001 2:24 PM To: [EMAIL PROTECTED] Subject: [PHP] PEAR DB Questions I've got the docs you all mentioned in response to my earlier questions. Thanks a ton! They were almost exactly what I ne

[PHP] PEAR DB Questions

2001-09-26 Thread Matthew Walker
I've got the docs you all mentioned in response to my earlier questions. Thanks a ton! They were almost exactly what I needed. There's only one thing that I can't figure out how to do with the module. In PHP, there's a function 'mysql_insert_id()'. It returns the Autoincriment ID of the last ins

[PHP] PEAR db nextId() function

2001-05-07 Thread Zon Hisham Bin Zainal Abidin
can anyone help with PEAR nextId() function. it's in mysql.php but NOT part of DB.php usage? rgds. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PR

[PHP-CVS] cvs: php4 /pear DB.php PEAR.php.in /pear/DB STATUS common.php oci8.php /pear/DB/tests errors.inc fetchrow.inc numrows.inc sequences.inc /pear/DB/tests/ibase mktable.inc /pear/DB/tests/mysql mktable.inc /pear/DB/tests/oci8 002.phpt 007.phpt 009.phpt 010.phpt connect.inc mktable.inc skipif.inc /pear/DB/tests/odbc mktable.inc /pear/DB/tests/pgsql mktable.inc

2001-03-22 Thread Stig Bakken
ssb Thu Mar 22 17:15:10 2001 EDT Modified files: /php4/pear DB.php PEAR.php.in /php4/pear/DB STATUS common.php oci8.php /php4/pear/DB/tests errors.inc fetchrow.inc numrows.inc sequences.inc /php4/pear/DB/tests/ibase

[PHP-CVS] cvs: php4 /pear DB.php HTTP.php Mail.php Makefile.in PEAR.php.in package.dtd pear.in php-config.in phpextdist phpize.in run-tests.in /pear/Benchmark Iterate.php Timer.php /pear/Cache Function_Cache.php /pear/Crypt HCEMD5.php /pear/DB common.php ibase.php msql.php mssql.php mysql.php oci8.php odbc.php pgsql.php storage.php sybase.php /pear/Date Human.php /pear/File Find.php Passwd.php /pear/HTML Form.php /pear/Image Remote.php /pear/Mail rfc822.php sendmail.php smtp.php /pear/Math Fraction.php Util.php /pear/Net Curl.php SMTP.php Socket.php /pear/Numbers Roman.php /pear/PEAR Installer.php /pear/Payment Verisign.php /pear/XML Parser.php /pear/scripts pear.in php-config.in phpextdist phpize.in

2001-01-09 Thread Stig Bakken
ssb Tue Jan 9 17:02:00 2001 EDT Added files: /php4/pear/scripts pear.in php-config.in phpextdist phpize.in Removed files: /php4/pear pear.in php-config.in phpextdist phpize.in run-tests.in Modified files: /php4/pea