All,
A ways back I setup my db access PHP file to support either MySQL or MSQL.
Now, I am sticking w/MySQL. For performance reasons, should I replace my
generic functions w/the raw MySQL ones ?
For example, I had this (from PHPNuke):
function sql_connect($host, $user, $password, $db)
{
global $dbtype;
switch ($dbtype)
{
case "MySQL":
$dbi = @mysql_connect($host, $user, $password);
return $dbi;
break;;
case "mSQL":
$dbi = msql_connect($host);
return $dbi;
break;;
default:
break;;
}
}
and now I can just use mysql_connect instead of going through the extra file
and functions and calling sql_connect.
Comments ?