Deleting Data in Mysql

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
jodesk23
Forum Newbie
Posts: 1
Joined: Mon Aug 30, 2010 7:55 am

Deleting Data in Mysql

Post by jodesk23 »

Hi there!!

How can I delete data from MySql using Javascript? Any script with confirmation before deleting the records in MySql?

Thank you
JakeJ
Forum Regular
Posts: 675
Joined: Thu Dec 10, 2009 6:27 pm

Re: Deleting Data in Mysql

Post by JakeJ »

You can't interact with MySQL directly through javascript. Javascript is a client-side scripting language.

You can use javascript ajax requests to call server-side code, (PHP, ASP, etc.) that will manipulate your database though.
vishal5085
Forum Newbie
Posts: 3
Joined: Thu Aug 05, 2010 11:58 pm

Re: Deleting Data in Mysql

Post by vishal5085 »

Javascript is used for Client-side Validation. It cant interact with back-end Mysql Database.
For tat You have to Server-side scripting Language like php,java,tcl and so on. :)
Post Reply