The SQL Server Database Engine ships with a variety of tools. I'm assuming you are a great web developer and if that is the case then no doubt, you would be well aware of SQL and RDBMS concepts. Here e_id and e_log are external variables, and executeSql maps each item in the array argument to the "?"s. And, that’s it. openDatabase − This method creates the database object either using existing database or creating new one. I also want to connect a remote database in my HTML page. This function needs a single argument, which is a function that takes care of actually executing the query as follows −. The openDatabase method takes care of opening a database if it already exists, this method will create it if it already does not exist. And after data is inserted into a database, we give a message “New record inserted successfully”. I saw many examples for creating table and insert, delete etc. To create and open a database, use the following code −, The above method took the following five parameters −. With MySQLi, you will need to rewrite the entire code - queries included. And after data is inserted into a database, we give a message “New record inserted successfully”.