Bitcoin Forum
June 14, 2024, 12:23:02 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Poll
Question: Can we connect to a Database with JavaScript?
javascript - 0 (0%)
mysql - 0 (0%)
php - 1 (100%)
Total Voters: 1

Pages: [1]
  Print  
Author Topic: Database and JavaScript  (Read 739 times)
Emily008 (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile WWW
November 28, 2014, 05:10:16 PM
 #1

I am trying to built a template for the ilmiweb.com. I want to access the Mysql database with JavaScript. Is it possible?
b!z
Legendary
*
Offline Offline

Activity: 1582
Merit: 1010



View Profile
November 28, 2014, 10:31:56 PM
 #2

javascript is clientside. it's possible, but it raises security issues. use PHP instead, which is serverside.
pocesar
Member
**
Offline Offline

Activity: 105
Merit: 10


View Profile WWW
November 28, 2014, 10:42:56 PM
 #3

you can use node.js, thats javascript server side, but you need a way to communicate with the server, usually using AJAX or websockets

https://github.com/pocesar - BTC 1KLRAFHGGhE2WiRASkASatvMR1vALmkB9L
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!