...

how to call a onclick function that having SQL statement in a image?

therry
06-28-2002, 10:12 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 ASP & Microsoft SQL?

QuackHead
06-28-2002, 03:30 PM
never tried this before, not sure if it would work or not...

try using VBScript (Note, this will only work in IE4+)

<script language="VBScript" runat="Server">
Function update()
update mmpo(table name) set user(field name) = 0
End Function
</script>






Please keep in mind that I have no idea if this will work or not even in Internet Explorer. Just one of the random ideas I got.

Happy programming

~Quack



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum