Bear in mind that addslashes do not work correctly for mssql databases, you should do
Code:
str_replace ( "'", "''", $_GET [ "var" ] );
instead.
P.S. *_pconnect is not 'passive', but 'persistent' - it is stick to every apache process which use *_pconnect functions - it may be dangerous or not, depends on your configuration. I do not recommend using persistent connections in production state sites.