I hope to make very simple image gallery. Where users can upload images to the gallery. But to display this image admin has to accept it. To do that I have image management table. In this table there is a column called status. Default value of each image is '0'. What I want is when I click on that '0' of one image it should change to '1'. At the same time status column of database should change to '1'.
I guess I can do this with JavaScript. However I've no idea how to run the MySQL query with JavaScript.
Can anyone tell me how to do this please?