How to connect JavaScript and MySQL

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.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Databases

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Sep 25th, 2006, 09:55
Junior Member
Join Date: Jun 2006
Location: Pune, India
Age: 27
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 25th, 2006, 22:06
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 26th, 2006, 04:13
Junior Member
Join Date: Jun 2006
Location: Pune, India
Age: 27
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 26th, 2006, 09:33
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
connect, javascript, mysql

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 20:42.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42