hi, i need to store values which return java script to mysql table .here my javascript code. Counter.prototype.increment = function() { this.counter++; var counter1=this.counter; } i need this counter1 value must be store in favorite field in the location table. how i do this.plz any one help me to this. thanks
Since javascript is a client side scripting language, so alone with javascript you can not store value in database. Use some server side scripting like PHP, ASP, JSP, Servlets etc. Pass the value stored in the counter1 variable to the server side components and that will intract with database (mysql) to save the value.