Witam
Mam teraz następujący problem.

Otóż mam następującą metodę w klasie
  1. function bind_param($param_array){
  2. try{
  3. if( ! is_array($param_array) ){
  4. Throw new Mysqli_exception_param('1st parameter array',null,get_class($this),__FUNCTION__);
  5. } else {
  6. $bind_array=array();
  7. $type_str=self::Get_type_string($param_array);
  8. $bind_array[0]=$type_str;
  9.  
  10. foreach($param_array as $key=>$param){
  11. $bind_array[]=&$param_array[$key];
  12. }
  13. if (!call_user_func_array('parent::bind_param',$bind_array) ) {
  14.  
  15. Throw new Mysqli_exception_query('bind_param',null,get_class($this),__FUNCTION__,null,$this->last_stmt);
  16. }
  17. return true;
  18. }
  19. }catch(Mysqli_exception_param $e) {
  20. Mysqli_access::handle_exception($e);
  21. return false;
  22. }catch(Mysqli_exception_query $e) {
  23. Mysqli_access::handle_exception($e);
  24. return false;
  25. }
  26. }


linia
  1. if (!call_user_func_array('parent::bind_param',$bind_array) ) {
wyrzuca taki błąd
  1. 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
  2.  
  3. QUERY error
  4. Class : mysqli_access_stmt - Using Methode bind_result().
  5. Error : (5) Could not execute the query.
  6. Executing :SELECT * FROM users.
  7. Script : /home/slupy/public_html/mm/includes/mysqli_stmt_class.php - Line : 139.
  8. Trace :
  9. /home/slupy/public_html/mm/includes/mysqli_stmt_class.php - Line 193
  10. Class mysqli_access_stmt - Using Methode bind_result()
  11. /home/slupy/public_html/mm/includes/mysqli_class.php - Line 168
  12. Class mysqli_access_stmt - Using Methode fetch()
  13. /home/slupy/public_html/mm/includes/functions.php - Line 135
  14. Class mysqli_access - Using Methode get_data()
  15. /home/slupy/public_html/mm/index.php - Line 83
  16. Class - Using Methode poziom()


co może być przyczyną?
z góry dziękuję
pozdrawiam
Remigiusz