+++ /dev/null
-<?php # encoding:utf-8\r
-\r
-# voir : http://us2.php.net/manual/en/function.func-num-args.php\r
-\r
-# utiliser mysqli à la place :\r
-# $stmt = $mysqli->prepare("INSERT INTO CountryLanguage VALUES (?, ?, ?, ?)");\r
-# $stmt->bind_param('sssd', $code, $language, $official, $percent);\r
-function query($query)\r
-{\r
- $args = func_get_args();\r
- foreach ($args as $i => $arg)\r
- if (is_string($arg))\r
- $args[$i] = mysql_real_escape_string($a);\r
- \r
- array_shift($query, $args);\r
- \r
- return mysql_query(call_user_func_array('sprintf', $args));\r
-}\r
-\r
-?>
\ No newline at end of file