Jump to content

Submit/Approve/Display Content in database in PHP?


Lorreign

Recommended Posts

I would like to do something that I know can be done, I just don't know how exactly.

 

I want a page where users can submit an image, text, and links and then what is submitted goes to an administration page where such submitted can be approved or declined. And then another page where all the things that have been approved go into a table where the image, text, and links are displayed in a numbered fashion. Here are some picture examples of what I mean:

 

form.php

http://img217.imageshack.us/img217/6228/formphpmh3.gif

 

admin/admin.php

http://img146.imageshack.us/img146/1281/adminphpws3.gif

 

entries.php

http://img145.imageshack.us/img145/2...riesphphb5.gif

 

Here are my versions:

PHP version 4.4.7

MySQL version 4.1.22-standard-log

 

How exactly do I do this? Is there a script somewhere already written that I can modify or use?

Link to comment
Share on other sites

you create a database where you have colums for the picture name, the text and the link... also you have to make a colum that controls if this image have been approved which you could call approved :P... if the image is approved you give it the number 1 in the colum ohterwise its = 0.

 

then you make a page where you list all the images that is = 0 which the admin can see... in this page you also make it possible for the admin to change the condition of the approve colum you created in the database...

 

next you make a page where you list all the images from the database where the colum approved is = 1... this page is for the users to see...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.