...

View Full Version : Access database using Javascript



antod
07-09-2011, 09:20 PM
Hi,
I want to access SQL database using javascript.

I am passing 1 value to the java script but I want to pass that value further to the SQL query as an where clause parameter to retrieve data.

If the value retrieves multiple or single data then how do i handle it.
Is it possible to use dataset in javascript?

Regards,
Anthony.:confused:

devnull69
07-10-2011, 09:30 AM
You can not access an SQL database using javascript (unless you use a server side version of javascript of course). If you want to access SQL databases from your browser, you'll need to write a server side script in a language like PHP and request this script from the browser. If you do it with Ajax you won't even have a page refresh and it will "look like" a direct communication with the database.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum