This is a discussion on "How to connect JavaScript and MySQL" within the Databases section. This forum, and the thread "How to connect JavaScript and MySQL are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
How to connect JavaScript and MySQL
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
How to connect JavaScript and MySQL
I am new to MySQL but wanted to know if there is any way to connect to the MySQL through JavaScript?
With regards, Mandar Thosar |
|
|
|
#2
|
|||
|
|||
|
Re: How to connect JavaScript and MySQL
Not directly. JavaScript is a client-side language and your MySQL database is going to be running on a server. You will communicate with MySQL with a server-side language such as PHP. JavaScript can be used client-side to validate and pre-process data before it is 'posted' to the server where a PHP script picks it up and handles the database transaction. |
|
#3
|
|||
|
|||
|
Re: How to connect JavaScript and MySQL
So you mean that I will have to add the layer of PHP between MySQL and JavaScript so as to create a bridge to facilitate communication between these two. Is PHP equally capable of showing eye-candy objects at the client side as JavaScript or Ajax?
With regards, Mandar Thosar |
|
#4
|
|||
|
|||
|
Re: How to connect JavaScript and MySQL
You missing thpopint. JavaScript is a client-side scripting language and PHP is a server-side scripting language. Both play their part. Somethings are taken care of client-side and some server-side. In fact somethings can only be done at one end or the other. To get the benefits of AJAX you will need both a good understanding of JavaScript and the server-side language that it is effectively communicating with. |
![]() |
| Tags |
| connect, javascript, mysql |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Develope scalable Web applications using XHTML/CSS, PHP, Javascript, MySQL, Web 2.0 | surfacant | Job Opportunities | 0 | Aug 24th, 2007 21:59 |
| [For Hire] Expert in Php, Mysql, AJAX, JavaScript, HTML, XML, Smarty , API | shaileshgajjar | Job Opportunities | 0 | Jul 13th, 2007 06:10 |
| Can't connect to MySQL server on 'localhost' (10061) | brunette | Databases | 2 | Nov 12th, 2006 18:51 |
| How to connect flash form with Mysql database | shenbagarajan | Flash & Multimedia Forum | 6 | Jan 20th, 2006 19:59 |