• maxoutin

    (@maxoutin)


    Hello, I am looking into connecting an existing database located on an azure server and be able to query the content of the database to the front end part of the website. I am available for any questions you have regarding this matter. Cheers

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    If it’s a SQL database, you can connect using a new instance of the wpdb class, or connect using PHP mysqli_*() functions. Since PHP runs server side, any client requests would need to be relayed through your server.

    In theory it is possible to connect directly to a DB from JavaScript but that has some serious security implications. Relaying through your server is much better.

Viewing 1 replies (of 1 total)
  • The topic ‘Connecting a remote database located on Azure server to the website’ is closed to new replies.