SyntaxFix
Write A Post
Hire A Developer
Questions
You can't do it with only Javascript. You'll need some server-side code (PHP, in your case) that serves as a proxy between the DB and the client-side code.