From: Daevid Vincent Date: May 12 2003 10:18pm Subject: RE: manipulating myqsl database from javascript function.... List-Archive: http://lists.mysql.com/mysql/139754 Message-Id: <002f01c318d4$7762e890$b60aa8c0@Locutus> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable You could possibly use java to connect to mysql (jdbc, odbc) and then = use java to manipulate js objects on the page too. This would get tricky, = but is doable. I would suggest you look into a server side language like PHP or Perl = and this way you have less problems across browsers and also js is = incredibly klunky, slow and prone to throw exceptions. > -----Original Message----- > From: colbey@stripped [mailto:colbey@stripped]=20 > Sent: Sunday, May 11, 2003 8:45 PM > To: Bruce Douglas > Cc: mysql@stripped > Subject: Re: manipulating myqsl database from javascript function.... >=20 >=20 > you can't directly interface js with mysql of course.. it's a=20 > client side > language.. but you could have js form and redirect a to a url=20 > (php script) > with HTTP GET parameters and from that data, dump it into the=20 > database... >=20 > would be very simple to get going.. >=20 >=20 > On Sun, 11 May 2003, Bruce Douglas wrote: >=20 > > Hey... > > > > ARGGGHHH!! How do i interface with a mysql database from=20 > javascript?? I can > > do it with perl/php/asp.. with no probs... but how do i=20 > have a jscript > > function that allows me to insert/update a simple table.. > > > > Baically.. I'd like something like the following... > > > > > > function foo(ndx) > > { > > query =3D "insert foo into table tmp" > > do_query(query) > > > > } > > > > > > were the tmp table would now have value foo in the tbl... > > > > Thanks > > > > Bruce > > > > > > > > -- > > MySQL General Mailing List > > For list archives: http://lists.mysql.com/mysql > > To unsubscribe: =20 > http://lists.mysql.com/mysql?> unsub=3Dcolbey@stripped > > >=20 > --=20 >=20 > MySQL General Mailing List >=20 > For list archives: http://lists.mysql.com/mysql > To unsubscribe: =20 > http://lists.mysql.com/mysql?> unsub=3Ddaevid@stripped >=20