jasmine825 jasmine825 - 3 months ago 10
PHP Question

Function calling php

error_reporting("E_ALL");
ini_set("display_errors",1);

require("Remittance.php");

$id=$_GET['id'];

$remit= new Remittance();
$remit->getById($id);

echo $remit;


I have this code, and in the url I put inactive/test.php?id=12234
However it won't display anything, all I get is a blank page, and i'm not sure what the exact problem is.

Answer

use

include 'Remmittee.php';

and the URL should be

www.inactive/test?id=1234

and to get the id, use,

$_GET['id'];

Comments