I have a simple gallery built that allows anonymous users to upload images.
I'm trying to set it up to send all uploaded images to a queue to await approval from the admin.
I created a table in my database called imgApp and it defaults to 0.
What I want:
When the admin clicks a checkbox, it sets the column to 1, and the photo will then be published.
if($row->imgApp == 1){
echo '<td align="left">Approved</td>';
}else{
echo '<td align="left">Not Approved</td>';
}
If you can point me to something for me to research to be able to develop this, I'd appreciate. I just don't know how to approach it.
Do I set it up to move the uploaded photos to a different directory (the approved photo directory) when the photo is changed from 0 to 1?