Greetings,
I am attempting to move from a static to dynamic site but have run into a small problem that defies my understanding.
I am using the database structure for a news site from "PHP and MySQL Web Development" by Luke Welling and Laura Thompson. It uses a file "publish.php" to alter the status of a record from published (and therefore appearing) to unpublished (and therefore not appearing).
While the publish.php function works fine, and the pages all seem to be responding as they should, with published records appearing, during the past month, on two occasions, all records have suddenly reverted to "0" in the "published" field. That is, they change to being unpublished documents, which renders the site completely useless because nobody can see anything.
I can go and re-publish them all, which I did the first time because I thought perhaps I had done something somehow. I was not sure how I could have, since one day it was working, and when I checked again two days later, everything was unpublished.
It's happened again though, and I've no desire to go re-publish the entire database again. I'd rather solve the problem and find out why it could be happening.
Has anyone else experienced this? Or am I all alone in the wilderness? I can't seem to find any other instances of this occurring but perhaps someone can offer some assistance.
In essence, what sort of occurrence might cause the entire database to be unaffected except for one field reverting to the default?