php try catch wsod -


i have issue. when run:

try {  $as   ->setforename($_post['fname'])   ->setsurname($_post['sname'])   ->setemail($_post['email'])   ->setuser($_post['user'])   ->setpass($_post['pw'])   ->setphone($_post['tel'])   ->setmobile($_post['mob'])   ->setjob($_post['job'])   ->setauth($_post['auth'])   ->addprocess(); } catch (exception $e) {  echo $e; } 

i "white screen of death" when use:

$as  ->setforename($_post['fname'])  ->setsurname($_post['sname'])  ->setemail($_post['email'])  ->setuser($_post['user'])  ->setpass($_post['pw'])  ->setphone($_post['tel'])  ->setmobile($_post['mob'])  ->setjob($_post['job'])  ->setauth($_post['auth'])  ->addprocess(); 

it works fine. confused please help, in advance.

the try-catch block seems fine, try putting these lines on top of script see possible error:

ini_set('display_errors', true); error_reporting(e_all); 

Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -