Jump to content

Saving entries as draft/publishing


oberoth

Recommended Posts

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

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' ";

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.