Web Analytics Made Easy -
StatCounter how to call a onclick function that having SQL statement in a image? - CodingForum

Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

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

    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?

  • #2
    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

    Comment

    Working...
    X