Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
|
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 22nd, 2004, 07:13 PM
Registered User
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Execute mySQL statement in Java?

First time poster.. love your books.. I have quite a few!!!!

Here's the question.. Is it possible to execute a mysql query within a dhtml javascript?

For instance, I have a line such as:

Code:
    $vsigoption = "<a id=\"vsigoff\" title=\"Not yet implemented\" onmouseover=\"sigson('".$thisuser."')\">Turn off user signatures.</a>";
I want to pass the username on to a Jscript that will update a field in a mysql table.

Can it be done?
 
Old March 16th, 2005, 12:45 PM
Friend of Wrox
 
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

It might be, but it would be a very bad idea from a security p-o-v, as then you'd be putting your user name and password onto the internet for anyone to see.

I'd strongly recommend doing this server side.

--
Don't Stand on your head - you'll get footprints in your hair. http://www.charlieharvey.org.uk





Similar Threads
Thread Thread Starter Forum Replies Last Post
Java MySql Connection ruzdi Java Basics 21 May 14th, 2012 12:57 AM
In Cursor set and execute statement related proble param99 SQL Server 2000 0 December 15th, 2006 02:55 AM
how to execute Java program from Linux platform? sumandasgupta_2k Java Basics 1 April 6th, 2006 02:59 PM
How do you execute a Insert statement? brendan82 Beginning VB 6 3 December 29th, 2003 12:26 PM
Trouble with mysql statement cbright JSP Basics 1 October 2nd, 2003 06:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.