"; var fb_mail = "

Syntax error: line break

I have the following code in jquery:

var user_id = "<?=$_SESSION['user_id'];?>";
var fb_mail = "<?=$_SESSION['facebook_mail'];?>";
var google_mail = "<?=$_SESSION['google_mail'];?>";

      

error in the above code syntax error:unterminated string literal

Can anyone help me

+3


source to share


1 answer


First of all check the session whether or not

like

 var user_id = "<? if(isset($_SESSION['user_id'])) { echo $_SESSION['user_id']; } ?>";

      



Finally I got the solution

Thank you for helping me solve the problem.

0


source







All Articles