Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
I need an IF statement or something else to insert 1-4 files each week on the website
Old 11-21-2009, 11:23 PM I need an IF statement or something else to insert 1-4 files each week on the website
Novice Talker

Posts: 5
Name: Lanet
Trades: 0
My website will need to display a sales paper. Each page of the sales paper is a .pdf file and will be 1-4 files depending on the amount of sales that month. Instead of changing the .html code each month to read in 1,2, 3, and/or 4 .pdf files is there a way that I can us an IF statement or something else to search the directory for certain file names and insert however many it finds one after the other? It would be even 'sweeter' to have small images of each of those papers displayed and let the user click on the image to display and or print the larger ad.

Thanks for any advice you can offer.
Lanet
lanetc is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-21-2009, 11:56 PM Re: I need an IF statement or something else to insert 1-4 files each week on the web
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
HTML is NOT a scripting language. You will have to use server side code or do it manually.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-22-2009, 05:58 PM Re: I need an IF statement or something else to insert 1-4 files each week on the web
Novice Talker

Posts: 5
Name: Lanet
Trades: 0
Ok can you give me an example of how to do this?
lanetc is offline
Reply With Quote
View Public Profile
 
Old 11-22-2009, 08:25 PM Re: I need an IF statement or something else to insert 1-4 files each week on the web
Banned

Posts: 315
Name: Doug
Trades: 1
You could create a database of file names and load the monthly files via a PHP page.
That's how the pictures are done on these pages.

http://www.lifeofthepartymolds.com/
marketingman100 is offline
Reply With Quote
View Public Profile
 
Old 11-23-2009, 01:56 AM Re: I need an IF statement or something else to insert 1-4 files each week on the web
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by lanetc View Post
Ok can you give me an example of how to do this?
in what language?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-23-2009, 10:02 PM Re: I need an IF statement or something else to insert 1-4 files each week on the web
Novice Talker

Posts: 5
Name: Lanet
Trades: 0
I'm just using a template from steve's free templates and modifying all the pages in notepad - old school I know and I'm open for how I should be doing it right!
lanetc is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to I need an IF statement or something else to insert 1-4 files each week on the website
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25939 seconds with 12 queries