Friday, 15 March 2013

Fatal error: Function name must be a string in web/mhswpindahprodi.det.php on line 221 -



Fatal error: Function name must be a string in web/mhswpindahprodi.det.php on line 221 -

here code

tampilkanjudul("mahasiswa pindah prodi"); if (!empty($mhswid)) { $gos = (empty($_request['gos']))? 'konfirmasipindah' : $gos; $mhsw = getfields("mhsw m left outer bring together programme prg on m.programid=prg.programid left outer bring together prodi prd on m.prodiid=prd.prodiid left outer bring together statusmhsw sm on m.statusmhswid=sm.statusmhswid", 'm.mhswid', $mhswid, "m.*, prg.nama prg, prd.nama prd, sm.nama sm, sm.keluar"); if ($mhsw['keluar'] == 'y') echo errormsg("tidak dapat dipindahkan", "status mahasiswa: <b>$mhsw[sm]</b> yang berarti sudah tidak dapat dipindah lagi. <hr size=1 color=silver> pilihan: <a href='?mnux=mhswpindahprodi'>kembali</a>"); else $gos ($mhsw); // line 221 } ?>

its geting error fatal error:

function name must string in /var/www/clients/client9/web31/web/mhswpindahprodi.det.php on line 221

$gos = (empty($_request['gos']))? 'konfirmasipindah' : $gos;

replace line with:

$gos = (empty($_request['gos']))? 'konfirmasipindah' : $_request['gos'];

it's pointless test whether variable exists, , utilize different variable instead ;)

php string runtime-error

No comments:

Post a Comment