syntax error, unexpected T_STRING in php -


hi getting error , has become headache me. can please me have committed mistake.

here code.

<?php echo mxp_draw_pull_down_menu('datefield', mxpstatistics::getfieldsdropdown(), isset($_session['statistics']['datefield']) ? $_session['statistics']['datefield'] : ' ', 'onchange="javascript: savemodify(document.searchreport'.$rand.', \''.mxp_href_link_admin(filename_default, $mxptemplate->getmodule() . '&module=' . substr($file['name'], 0, strrpos($file['name'], '.'))) ."' , null, " . $_get['windowid']);"');?> 

just remove last 4 characters("');) code.

you can detect syntax errors easily, if use syntax highlighting ide. also, if try save number of line this, real headache find syntax errors , debug.

try code

<?php  echo mxp_draw_pull_down_menu('datefield', mxpstatistics::getfieldsdropdown(), isset($_session['statistics']['datefield']) ? $_session['statistics']['datefield'] : ' ', 'onchange="javascript: savemodify(document.searchreport'.$rand.', \''.mxp_href_link_admin(filename_default, $mxptemplate->getmodule() . '&module=' . substr($file['name'], 0, strrpos($file['name'], '.'))) ."' , null, " . $_get['windowid']); ?> 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -