A Flash Developer Resource Site

Results 1 to 20 of 20

Thread: CMS Tutorial

Threaded View

  1. #17
    Senior Member RazoRmedia's Avatar
    Join Date
    Oct 2000
    Location
    UK
    Posts
    3,016
    okay, heres the first part

    part 2 - The paragraphs section

    The zip file attached contains the following files:

    • createPara.htm - This is a simple form which lets the user input a paragraph title and the paragraph content.
    • addParatoDB.php - This is immediately called after createPara.htm, it adds the information in the form to the database. As the paraId is autoincrement, this is never passed and instead is incremented in the DB when a new record is added.
    • editPara.php - retrieves all the current paragraphs and displays them together on a page with the option of choosing one to edit. This simply displays a list of all the paragraph titles and a button for the user to edit or delete the respective paragraph. The 'edit' button points at changePara.php?id=xx where 'xx' is the id of the paragraph to be edited and the delete button points at deletePara.php?id=xx where 'xx' is the id of the paragraph to be deleted.
    • changePara.php - this page returns the information held in the database and returns it in a form (just a couple of textboxes really. it lets you update a paragraph using a form similar to the createPara.htm page but with the chosen paragraph already in the form.
    • updatePara.php - this updates the changed paragraph as amended by the user in changePara.php
    • deletePara.php - this delete the chosen paragraph as chosen in editPara.php


    The only thing missing here is the file with all the connection strings in to the database, this is needed to be added if youu wish these files to work.

    Any questions, please feel free to post.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center