Re: [PHP] [OOP] Class to handle PEAR::DB

2004-11-18 Thread valerie17
croit c'est trop Mais j'crois que ce n'est pas assez From: Jason Wong <[EMAIL PROTECTED]> Date: Thu, 18 Nov 2004 19:06:56 +0800 Subject: Re: [PHP] [OOP] Class to handle PEAR::DB On Thursday 18 November 2004 17:05, [EMAIL PROTECTED] wrote: > my problem is : everytime I execu

Re: [PHP] [OOP] Class to handle PEAR::DB

2004-11-18 Thread Jason Wong
On Thursday 18 November 2004 17:05, [EMAIL PROTECTED] wrote: > my problem is : everytime I execute this file in CLI mode I always got this [...] > Standard Message: DB Error: no database selected > Standard Code: -14 > DBMS/User Message: SELECT * FROM country [nativecode=1046 ** No Database > Se

[PHP] [OOP] Class to handle PEAR::DB

2004-11-18 Thread valerie17
I'm making a counter using DB, 1 $counter++); 16 $where = "page = 'index'"; 17 18 $result = $db->query("LOCK TABLES counter WRITE"); 19 if ( DB::isError($result) ) { 20 die($result->getMessage()); 21 } 22 23 $sql= "SELECT counter FROM $tab