PDA

View Full Version : how to call a onclick function that having SQL statement in a image?


therry
06-28-2002, 08:59 AM
Hi,

If I'm having an image and when I onclick on the image, the onclick function should call a function which will do the UPDATE SQL statement .

Ex:

<img......onclick="update()">

function update()
{
update mmpo(table name) set user(field name) = 0;

}

how can I do using javascrip?

Phip
06-28-2002, 09:02 AM
when are you able to use javascript to process mysql?

last time i checked you can't. You need server side (ie: php, asp, perl,).

therry
06-28-2002, 09:14 AM
so, do u know how to use ASP to do so?

Phip
06-28-2002, 09:28 AM
hmmmm.... i can't find anything on ASP and mysql, just ASP and access. can you use php?

therry
06-28-2002, 10:08 AM
sorry , I have to use ASP