![]() |
|
#1
|
||||
|
||||
'Related articles' php /mysql questionOK, i am stumped; or a case of too much PHP...
i am trying to figure out how i can add a 'related article' column onto my new design for this site. right now, i have a table that holds details of every article, (i.e. keywords, html, title, desc, etc - each with it's own id), so how would i manage listing a related articles column for a given webpage? __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#2
|
|||
|
|||
|
What makes sense to me to do is:
Add a column to this table with certain keywords, and each article would have 5 or 6 keywords. Then for related articles, do a search of this column using the keywords you've set for the current article. So for instance, having Code:
So when you're at "Databases with PHP", you use it's keywords to scan the table again, specifically the "Keywords" column, searching for occurances. The more occurances, the more related it is. Note I've ont thought of a goos SQL query to do this, comma deliminated lists are never great with scanning tables, so it needs improvement. But as Microsofts latest campaign said for a short while, it just works. Garth Farley |
|
#3
|
||||
|
||||
|
Quote:
definitely something i don't want to do __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#4
|
|||
|
|||
|
Quote:
Good Lord! Look at the state of my spelling A terribly ashamed Garth Farley |
|
#5
|
||||
|
||||
|
no, i was not talking about ur spelling tho i agree
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
Last Week of IA Training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Question about loading php into tables or css | pcxgamer | Web Design Forum | 6 | 17-Sep-2005 21:08 |
| All the big PHP script collections that matter | jrobbio | MySQL / PHP Forum | 5 | 06-Jun-2003 16:14 |
| PHP Sessions question | JdS | MySQL / PHP Forum | 2 | 16-Jul-2002 04:58 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The