I want to add a sort of a switch to make it easy to set items active / inactive form the modify page
I guess it has to be something like this:
<?php $database->query("UPDATE ".TABLE_PREFIX."mod_news_posts SET active = '0' WHERE item_id = '$post['item_id']'"); ?>
//
and
//
<?php $database->query("UPDATE ".TABLE_PREFIX."mod_news_posts SET active = '1' WHERE item_id = '$post['item_id']'"); ?>
There has to be an easy way to do this
I know I cannot just make a a href=" " ... and put the php code in...
can anyone tell me how to make a linkbutton to create this option
(this would also be a fantastic option for bakery)