How can i convert this php script to JavaScript in a Node project [closed] I have a nodejs server running, and I’m using SQL syntax to query data from my MYSQL database. This is the PHP script: This is my nodejs code: Results are not coming as expected