i m making a blog using my own code .. i m not using wordpress or any sort of thing .. i m doing it manually. i want to show related posts section which would contain at least 4 links of another posts which are related to that particular post. can someone write that code for me ?? i know that i have to create a column in my database containing tags ..but i have no idea about the code.. thanx in advance
aaloo
12
Junior Poster in Training
Recommended Answers
Jump to PostI guess you have a blog table. You'll need another table for keywords and another one to link blogs to keywords. If you have those, I can give you a query that will match blog entries based on keywords.
Jump to PostThat is not that easy, since the query is based on those 3 tables for a reason. I will post my tables, and php code for the query when I get home.
Jump to PostI have my own cms, so when I add an article with tags, this table gets filled with a query per tag. The table itself is added manually of course, just like the other two.
Jump to PostDidn't P give the table structures and associated queries here:
http://www.daniweb.com/web-development/php/threads/387961/1684151#post1684151
?
All 13 Replies
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
aaloo
12
Junior Poster in Training
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
aaloo
12
Junior Poster in Training
aaloo
12
Junior Poster in Training
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
aaloo
12
Junior Poster in Training
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Stefano Mtangoo
455
Senior Poster
aaloo
12
Junior Poster in Training
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
diafol
commented:
love your help vampire link. appropriate :)
+14
aaloo
12
Junior Poster in Training
diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.