- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
function getQueryString($fileName, $v1 = "", $v2 = "", $v3 = "", $v4 = "", $v5 = "", $v6 = "", $v7 = "", $v8 = "", $v9 = "", $v10 = "", $v11 = "", $v12 = "", $v13 = "", $v14 = "", $v15 = "")
{
global $queryStringCache;
if(!isset($queryStringCache[$fileName]))
{
$queryStringCache[$fileName] = file_get_contents(dirname(__FILE__).'/sql/'.$fileName);
}
$query = sprintf($queryStringCache[$fileName], $v1, $v2, $v3, $v4, $v5, $v6, $v7, $v8, $v9, $v10, $v11, $v12, $v13, $v14);
return $query;
}