Forum Moderators: open
I run a site that is standard php/mysql driven. I have many authors that post articles and as editor I am looking for a simple way to disable these articles. The db has a 'status' field that is either set to 0 or 1 (hold or active).
I am looking to make a button that when clicked can update the db without refreshing the page similar to how the 'Digg' buttons work on their site.
If anyone could point me in the right direction I would greatly appreciate it.
Thank you,
Matt
If you are looking to alter the boolean value (1 or 0) in the database then you should think about using AJAX for this. If you are looking for something fancy then you should be able to find a nice tutorial on the net, if not then you can use a basic xmlHTTPRequest request and then use DOM to alter the apearance of the document, if that's necessary.
Maybe you will find something here to help you on your journey.
Take a look at these Webmasterworld.com "xmlHTTPRequest" search results [google.co.uk]
If you get really stuck please sticky me and i will set you up with some code, but please do investigate first - that's the fun part ;-)
Del