A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Admin login to edit dynamic text

  1. #1
    Superman Daniellawson's Avatar
    Join Date
    Aug 2001
    Location
    metropolis
    Posts
    593

    Admin login to edit dynamic text

    Hey all,

    I have a website fully created using HTML, CSS in dreamweaver which on various pages has text that i would like to be dynamic.

    The ideal situation would be an admin page (admin.htm), where the user can enter thier username and password and then have the ability to edit the text on certain pages.

    What would be the best way to approach this as i am fairly new with PHP and CMS.

    thanks for any info on this.

  2. #2
    associate admedia's Avatar
    Join Date
    Oct 2001
    Location
    is
    Posts
    1,347
    Look into creating a password protected php page.

    This page would allow users to edit rows in a (mysql) database.

    Each row would represent a page.

    On the front end you would get the data from the requested row send with a querystring such as http://www.myexample.com/page.php?page=home

    The php on page.php would see 'home' is being requested. Get the row where the page id = home and display the data inside the content of that row.

    Hope that helps give you some ideas.

    You also might want to look at different web base WYSIWYG editors such as FCKeditor or TinyMCE.
    Last edited by admedia; 10-25-2006 at 06:29 AM.

  3. #3
    Superman Daniellawson's Avatar
    Join Date
    Aug 2001
    Location
    metropolis
    Posts
    593
    Thanks for the reply admedia.

    Is it necessary to have a database though if i only have one user logging into the system or will i need a database so that multiple page text can be edited?

    thanks.

  4. #4
    associate admedia's Avatar
    Join Date
    Oct 2001
    Location
    is
    Posts
    1,347
    Quote Originally Posted by Daniellawson
    Is it necessary to have a database though if i only have one user logging into the system or will i need a database so that multiple page text can be edited?
    Personally I like storing things in a database.

    The other strategy equally valid in a small 1 administrator / 1 site type scenerio would be to save or write the content to a file each time it is updated.

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