Witam
Mam teraz następujący problem.
Otóż mam następującą metodę w klasie
function bind_param($param_array){
try{
Throw new Mysqli_exception_param('1st parameter array',null,get_class($this),__FUNCTION__);
} else {
$type_str=self::Get_type_string($param_array);
$bind_array[0]=$type_str;
foreach($param_array as $key=>$param){
$bind_array[]=&$param_array[$key];
}
if (!call_user_func_array('parent::bind_param',$bind_array) ) {
Throw new Mysqli_exception_query('bind_param',null,get_class($this),__FUNCTION__,null,$this->last_stmt);
}
return true;
}
}catch(Mysqli_exception_param $e) {
Mysqli_access::handle_exception($e);
return false;
}catch(Mysqli_exception_query $e) {
Mysqli_access::handle_exception($e);
return false;
}
}
linia
if (!call_user_func_array('parent::bind_param',$bind_array) ) {
wyrzuca taki błąd
Warning
: call_user_func_array
() [function.call
-user
-func
-array]: First argument is expected to be a valid callback
, 'parent::bind_result' was given in
/home
/slupy
/public_html
/mm
/includes
/mysqli_stmt_class
.php on line 138
QUERY error
Class : mysqli_access_stmt - Using Methode bind_result().
Error : (5) Could not execute the query.
Executing :SELECT * FROM users.
Script : /home/slupy/public_html/mm/includes/mysqli_stmt_class.php - Line : 139.
Trace :
/home/slupy/public_html/mm/includes/mysqli_stmt_class.php - Line 193
Class mysqli_access_stmt - Using Methode bind_result()
/home/slupy/public_html/mm/includes/mysqli_class.php - Line 168
Class mysqli_access_stmt - Using Methode fetch()
/home/slupy/public_html/mm/includes/functions.php - Line 135
Class mysqli_access - Using Methode get_data()
/home/slupy/public_html/mm/index.php - Line 83
Class - Using Methode poziom()
co może być przyczyną?
z góry dziękuję
pozdrawiam
Remigiusz