|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Javascript and Mysql
Is it possible to use Javascript to lookup a mysql table?
|
|
#2
|
|||
|
|||
|
RE: Javascript and Mysql
That would not be possible directly from Javascript as it is a client side language and MySQL is a server side application as well as the fact that javascript does not have the capability of connecting to any DB. (that I am aware of...)
|
|
#3
|
||||
|
||||
|
RE: Javascript and Mysql
Blindeddie, I disagree. It would be possible if JavaScript just had these functions. Remember that MySQL server is different than a HTTP server.
But because JavaScript can't do this, I suggest that if you have to do a db connection from client side then study Java Appletts. But on the other hand I'm not sure if even appletts can do this. Perhaps if there's a good JDBC configuration on the server. |
|
#4
|
|||
|
|||
|
RE: Javascript and Mysql
T,
Yes it would be possible (if the functions existed), but it currently is not (since the functions do not exist)and client/server db connections are so unstable (in my opinion...and that opinion comes from experience) that to build an application based on it would not be the way to go. all that aside, the answer to the posters question is still... 'No you can not connect to MySQL from Javascript!' |
|
#5
|
||||
|
||||
|
RE: Javascript and Mysql
Quote:
I haven't denied this... I just noticed your poor point: Quote:
This is the correct point when we're talking about passing variables to PHP from javascript because PHP always requires page reload. |
|
#6
|
||||
|
||||
|
RE: Javascript and Mysql
#1
Quote:
#2 Quote:
well do you agree or disagree? |
|
#7
|
||||
|
||||
|
RE: Javascript and Mysql
Okay, you asked for it. From now on, this thread is the official codewalkers.com kidding thread :laugh:
As for agreeing or disagreeing: I agree that you cannot connect to a db from JS but I disagree that you javascript being a clien-side application would be the reason. ;) Okay, let's bury this thread deeper than any thread! |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Javascript and Mysql |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|