Update DB from out of the CMS

3 posts by 2 authors in: Forums > CMS Builder
Last Post: November 30, 2012   (RSS)

By mediaco - November 29, 2012

In my cms, I have a table (sc_orders) which has a checkbox field named "printed".

The contents of "sc_order" are shown in a list page and then a detail page for each record. And the value of printed is echoed on the list page. Basically to show if the detail page has been printed or not.

Is it possible to have a checkbox on the detail page, that when checked updates the value of "printed" in the DB?

This will then automatically be echoed in the list page.

I had thought this might be posible using mysql_update?

Re: [greg] Update DB from out of the CMS

By mediaco - November 30, 2012

Great. Had to tweak it a little but it's working perfectly now. Thanks.