Jump to content

[SOLVED] syntax error, unexpected T_CONSTANT_ENCAPSED_STRING


adamf

Recommended Posts

Hi All...

 

I'm trying to add the following line of code into a php script I own but am getting the this error when I do:

 

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in

/home/used/public_html/cont/Pages.php on line 1065

 

The problem is with the following code:

 

oEdit1.cmdAssetManager="modalDialogShow ('/assetmanager/assetmanager.php',640,445);";

 

I add it into the page along with other code like below:

 

<script>

var oEdit1 = new InnovaEditor("oEdit1");

oEdit1.cmdAssetManager="modalDialogShow

('/assetmanager/assetmanager.php?lang=german',640,445);";

oEdit1.REPLACE("txtContent");

</script>

 

I believe the problem is with the way my page is set up and the ' inside the  ('/assetmanager/assetmanager.php',640,445) part of the code.

 

The part of the php page which i'm trying to add this code into is a function like below:

 

        function editNav(){

                                $f ='TRYING TO ADD THE CODE HERE'; }

        return $f;

 

Do you know how I can go about placing the code - oEdit1.cmdAssetManager="modalDialogShow ('/assetmanager/assetmanager.php,640,445');"; - into a function like above?

 

Any advise you can provide me will be much appreciated...

 

Regards,

Adam

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.