SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Feel my RewiredMind KMxRetro's Avatar
    Join Date
    Jan 2001
    Location
    Exeter, Devon, UK
    Posts
    477
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    News Script - Suggestions.....

    Howdy folks,
    I'm currently writing a news script so that writers can update our new site whenever and wherever...

    The format is like this...

    Login
    Select news relationship (ie, related to Xbox)
    Enter news data
    Images? if yes then upload
    Build HTML
    Build Headlines
    End

    What would be the best way to do this? Should I update the database at every stage or use sessions? I tried sessions and got the thing finished but found that the data just was not being carried between pages properly and I was getting strange errors and output.

    Shall I continue with sessions or try the update db at each stage route?

    Thanks,
    Ken

  2. #2
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I recently wrote a news script which did pretty much what you are asking (except for the image uploads).

    The way I did it was to have one page where all information is input, then use one INSERT statement (after checking) to put it into the db.

    Furthermore I didn't allow HTML code in the inputs (partly because the people using the system don't know HTML) and instead leave all the common formatting to the template that displays the news.

    Mine which is still being perfected is at www.sclub17.net.
    I swear to drunk I'm not God.
    Matt's debating is not a crime
    Hint: Don't buy a stupid dwarf Clicky


Bookmarks

Posting Permissions

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