Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function my_mysql_query() {
- $numargs = func_num_args();
- $types = '';
- for ($i = 0; $i < $numargs; $i++) {
- $arg = func_get_arg($i);
- if (is_numeric($arg)) {
- $types.="i";
- }else{
- $types.="s";
- }
- $args[($i+1)] = $arg;
- unset($arg);
- }
- $args[0] = $types;
- return call_user_func_array('mysqli_stmt_bind_param',$args);
- }
Advertisement
Add Comment
Please, Sign In to add comment