[phplib-dev] db_mysql.inc & pconnect From: Holger Bahr (hb <email protected>)
Date: 05/18/01

Hello,

how can i handle mysql pconnects without the behaivor that iŽll receive
a new persistent connection with every new page/query ?

on something like

$db = new example_DB("SELECT id, username FROM members ".
                     "WHERE user_id = '".$auth->auth["uid"]."'");

do i have to provide a Link ID ?
In session and auth, isnŽt done this automatically ?

i changed the pconnect to connect in db_mysql.inc because otherwise, after
a short while, clients receive "too many connections" from the mysql
daemon.

Holger

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-dev-unsubscribe <email protected>
For additional commands, e-mail: phplib-dev-help <email protected>