oberoth Posted November 16, 2008 Share Posted November 16, 2008 Hi I am in the process of making a CMS/guestbook using php and mysql. I am using a simple html form to collect the data. I figured out how to save entries, and how to publish em. In my database I have made a row called "published", where I plan to assign a binary value which will tell me whether the entry is supposed to be published or not. The problem is that I am not sure how to implement this idea/plan using php. Any help would be much appreciated.(even just a nudge in the correct direction) Link to comment https://forums.phpfreaks.com/topic/132960-saving-entries-as-draftpublishing/ Share on other sites More sharing options...
veridicus Posted November 16, 2008 Share Posted November 16, 2008 Since you've already figured out how to save and publish entries, what's your question exactly? Link to comment https://forums.phpfreaks.com/topic/132960-saving-entries-as-draftpublishing/#findComment-691447 Share on other sites More sharing options...
redarrow Posted November 16, 2008 Share Posted November 16, 2008 example if you want all the published documents to be shown then set the published column to a 0 defult, now, when you goto your admin sms, us a update link to update the database with a 1, to let users see the published article live.... get me..... $mysql="select * from books where published='1' "; Link to comment https://forums.phpfreaks.com/topic/132960-saving-entries-as-draftpublishing/#findComment-691475 Share on other sites More sharing options...
oberoth Posted November 16, 2008 Author Share Posted November 16, 2008 Really have no idea what kind of mind block I had there. Anyways, thanks for the feedback. Il get right to it Link to comment https://forums.phpfreaks.com/topic/132960-saving-entries-as-draftpublishing/#findComment-691607 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.