General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old November 7th, 2002, 04:54 AM
Kruzien2002 Kruzien2002 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Jamaica
Posts: 25 Kruzien2002 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Cool Howz the article area work

I'm a newbie to Php

I was looking a t you article area and was wondering how you stored articles and retrieved them. Seperating them in stages
eg. Introduction, Conclusion

When I use Asp I simply use an inc file to store the article and record this in a database with a discription, etc for search and index purposes.

It's the wrong way but it works.

How does devarticles do it. Enlighten me please!!!


NB. Great site has got me real interested in Php web development.

Reply With Quote
  #2  
Old November 7th, 2002, 05:38 AM
wAr-AnGeL wAr-AnGeL is offline
Forum Security
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Behind You
Posts: 479 wAr-AnGeL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m
Reputation Power: 7
Send a message via ICQ to wAr-AnGeL Send a message via AIM to wAr-AnGeL
devArticles uses SiteWorksPro to run their site. SiteWorksPro is developed by devArticles. It's a good application if you don't know how to setup a site like devArticles or would like to spare the programming time and focus on content.

your db table would need fields like:

id (int, auto increment, primary)
Title (varchar)
Author (varchar)
Description (text)
Body (text)

those are the most common things you would need in your db. the script would just run an Insert query to put the content in.

to retrieve them you would go to a page like article.php?id=3 which would run a Select query and print back the article id 3.

hope it helps.
__________________




"Only Linux users see the end of crashes."
- Pl4t0

Reply With Quote
  #3  
Old November 7th, 2002, 06:43 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
devArticles uses two database tables for our articles.

The first table stores the default information, such as name, descript, topics, author id, links, related books, forum link, etc

then we have another database that links to the main table,

this contains the page name, page data, article id, and page number, then its just a matter of selecting the right page.

so when you have article.php?aId=2&page=2 it selects from the article page table, where the article id is 2, and page number is 2

Reply With Quote
  #4  
Old November 8th, 2002, 11:07 PM
Kruzien2002 Kruzien2002 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Jamaica
Posts: 25 Kruzien2002 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks

I heard of siteworks and here it's good but since I wanted to learn Php i thought i try something that will keep my attention.

I am with you with the DB structute but what is interesting according to Ben is the pages are indeed seperate and called when needed.

Cause i was thinking you put indexes in the text that the script would seperate them.

NB. Does siteworks do this forum too


ie. nice animation Ben thought you were more into flash

Reply With Quote
  #5  
Old November 9th, 2002, 08:01 AM
wAr-AnGeL wAr-AnGeL is offline
Forum Security
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Behind You
Posts: 479 wAr-AnGeL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m
Reputation Power: 7
Send a message via ICQ to wAr-AnGeL Send a message via AIM to wAr-AnGeL
no, this forum is run with vbulletin

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Howz the article area work


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway