PHP Code:
function mysqlf($type, $string)
{
if($type =='query')
{
$lol = mysql_query("$string");
return $lol;
} elseif($type =='array')
{
$lol = mysql_fetch_array("$string");
return $lol;
} else {
echo " error type not exist in function. Olajide Adeyemi a.k.a adex3g";
}
}
PHP Code:
$text = mysqlf('array', 'select coun(*) from table');
Comment