What am I talking about?
Moderator: General Moderators
-
nightraven
- Forum Newbie
- Posts: 1
- Joined: Sun Sep 12, 2004 5:10 pm
What am I talking about?
Hi folks, this is my first time here but I hope it's okay to ask a quick question?
I am designing a website for free software tutorials, on the home page I want each software package to have a small space where I can have say 'todays featured tutorials'. I want these tutorials and the links to change constantly (selected from a list of all tutorials for that topic).
see http://www.newventuresuccess.com/test.htm
each featured item will have a small picture, and a text link to the tutorial.
Is there anyway I can make this happen? Does anyone know what this is called so I can discuss it with people who know what they are talking about?[/url]
I am designing a website for free software tutorials, on the home page I want each software package to have a small space where I can have say 'todays featured tutorials'. I want these tutorials and the links to change constantly (selected from a list of all tutorials for that topic).
see http://www.newventuresuccess.com/test.htm
each featured item will have a small picture, and a text link to the tutorial.
Is there anyway I can make this happen? Does anyone know what this is called so I can discuss it with people who know what they are talking about?[/url]
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
The question is do you want to rotate through the list (i.e. show 1..10, then 11..20, then 21..30) or do you want to a random selection from the list. If you want random, the next question is do you want each set to be different from the previous set, picking each selection only from those that have not been shown, or just picking a random set which may show the same one (randomly) shown twice. There are different methods for each.
(#10850)
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany
iframes
after you figure out how you want to choose your featured tutorial you may want to check out IFRAMES in html as they will allow you to add dynamic content to the front of your page if you first page is like index.html or the like.
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany
The question you need to ask is what is your target audience ? How many people within your audience will still use older browsers which do not use your features and is it worth while coding your tutorial based on that kind of browser. Coding for all browsers, whilst giving great access means a lot of complications and generally messy scripts (often bad in a tutorial).
I am all for giving an introduction page for all browsers stating that Mozilla/Explorer X is required - Download Mozila here <link>.
You have an even better case to do this within a free tutorial, after all they are getting something for free, some initial work when needed isn't too much to ask.
I am all for giving an introduction page for all browsers stating that Mozilla/Explorer X is required - Download Mozila here <link>.
You have an even better case to do this within a free tutorial, after all they are getting something for free, some initial work when needed isn't too much to ask.
Don't overcomplicate the issue with client-side stuff that's not necessary.
The SQL (MySQL) for grabbing random rows from the database would look a bit like this:
ORDER BY RAND() will obviously do the randomizing work for you.
The SQL (MySQL) for grabbing random rows from the database would look a bit like this:
Code: Select all
SELECT tutorial_name,
tutorial_author,
tutorial_date,
tutorial_url
ORDER BY RAND()