Web Advertising | Names | Debt Help | Turbo Tax | Loans
help me with some logic PLEASE! [Archive] - PCMech Forums

PDA

View Full Version : help me with some logic PLEASE!


Ortica
07-10-2007, 11:07 PM
I have experience programming in VB, cobol, java, C++ (although awhile ago) and am struggling with some logic for a webpage I am trying to make using Dreamweaver (first time user of dreamweaver)

I'm trying to make a site that will need to be updated 4 or 5 times a week. ( I will be posting reviews about bands that play in the area). So I need it function similiar to a blog but I DO not want to use any blog sites.

I want to have 10 short reviews posted on my home page, in date order. However, when it comes time to add the 11th review I dont know what to do. The oldest review will need to be removed from the homepage so the 11th post can be added but I also want to save all the reviews. (My plan is to have an option where u can search or browse all reviews from a 'search page'.)

I would prefer to have some sort of admin page where I can input the latest review, click submit, and it will automatically remove and store the oldest entry and then add my new review.

I just cant think how to do it. Should I save my reviews in a text file? or in a database? If yes, I cant figure out the logic ...how do i say ...input latest 10 reviews into homepage; else; add to archives page...

also not sure if this is something taht could easily be developed in Dreamweaver.

any ideas what the easiest way to implement my idea would be great.

Petef56
07-11-2007, 02:03 AM
I'm thinking you need to use a programming language like PERL or VB.
Do you have MS Excel? If so you could do it all in VBA.

Have all your reviews in one common text file (or Excel spreadsheet), where you
can add the latest review to either the top or bottom of the document. Then
have the code create the webpage *.htm file using only the latest 10 reviews.

You would do all the review writing on your local computer, run the code to
create a new *.htm file and then upload the file to your website.

If you desire to do everything from online, then I think a programming language
such as PERL would be the way to go.

---pete---

blue60007
07-11-2007, 03:20 PM
Why not find some blog software to install on your website? Sure you could custom create your own system but something that has a whole team of developers would work with a lot less headache and would be more secure. Also, why re-invent the wheel?

I know this isn't really what you had in mind but it seems like the simpliest solution to me.

Ortica
07-11-2007, 11:26 PM
ive been doing some reading and think i may go with mysql and php