SyntaxError: unexpected token: identifier

I am using PHP, and there is lots of javascript, jQuery on my website

And finally I got this error

SyntaxError: unexpected token: identifier

What is mean by it? What is wrong and how to solve it?

140 views, 2 months ago

Ask

Share

Report

Mritunjoy Mushahary King Web Designer and Developer

I did able to solve this by looking this article

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Missing_semicolon_before_statement

What I did is, I changed from

$title = $row['title'];

to

$title = str_replace('"', "", $row['title']);

And solved

Something (") comma problem from my database fetched.





You Saved a Content
You unSaved a Content
You Award Rs.5/-
You donnot have enough money
Reported Success
Please Login to Access
Error! Something is wrong