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

2004-11-18 Thread valerie17
object(DBku)#1 (6) { ["type"]=> string(5) "mysql" ["user"]=> string(4) "root" ["pass"]=> string(0) "" ["host"]=> string(9) "localhost" ["db"]=> string(7) "valerie" ["dbhandler"]=> NULL } Standard Message: DB Error: no database selected Standard Code: -14 DBMS/User Message: SELECT * FROM country [n

[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

[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