var mysql = require( 'mysql' );
I have included the above module, but the browser keeps getting the same error as the title. As a beginner in programming, I would like to create a membership registration function.
var mysql = require( 'mysql' );
I have included the above module, but the browser keeps getting the same error as the title. As a beginner in programming, I would like to create a membership registration function.
Is your code intended to be executed by Node.js as you specified in the tags or by a web browser? If this is the second answer mysql is a Node.JS package and therefore intended to be executed by this one. "Require" is also not recognized natively in web browsers and must be imported first