snowal raj

snowal raj

  • NA
  • 166
  • 39.5k

how to get values from function

Jan 5 2017 8:15 AM
hai ,
      i create  a  page  in php for grid results,but i can't do this.
I have error when call a function  
 
this my code
 
<?php
include_once ("psl-config.php");
include_once ("user.class.php");
ini_set('display_errors', '1');
$result= GetData($mysqli,'ICCTRACE');
echo $result; 
?> 
 
and i call GetData   function with 2 parameters.
 
the function  is
 
 
public function Getdata($connection,$database)
{
$connection->select_db($database);
$statement = $connection->prepare("call sp_get_log_sheet");
$statement->execute();
$statement->store_result();
return $statement;
}
 
and i have  a error
 
 
Fatal error: Uncaught Error: Call to undefined function GetData() in C:\Apache24\htdocs\report\report.php:32 Stack trace: #0 {main} thrown in C:\Apache24\htdocs\report\report.php on line 32
 
please help me 
 

Answers (1)