
May 8th, 2000, 01:43 PM
|
|
|
|
I'm totally confused about when and how to use mysql_pconnect() vs mysql_connect().
I'm creating a sql wrapper function:
function sql_wrapper ($sSql) {
$iConn = mysql_connect();
$iResult = mysql_db_query ("db", $sSql, $iConn);
...
...
}
Which function should I use?
Should $iConn be a static variable?
If I want to use mysql_insert_id(), do I have to use mysql_connect to keep the threads separate?
Help!
|