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
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
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Chetan RanpariyaPosted Jan 5, 2017, 8:38 AM