Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,151,601 members, 7,812,962 topics. Date: Tuesday, 30 April 2024 at 12:03 AM

I Need Help On A Php Project - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / I Need Help On A Php Project (1199 Views)

A PHP Project For A Student. / Check Out This Cool Php Project / Naijadev Socialite Php Project Ready For Sales! (2) (3) (4)

(1) (Reply) (Go Down)

I Need Help On A Php Project by dave1614: 11:09am On Mar 16, 2018
Guys please I need help on a PHP project I'm working on. Please can anyone explain to me how nairaland indexes it's pages and stores topics under different number indexes. I would be greatly grateful.
Re: I Need Help On A Php Project by micodon(m): 1:19pm On Mar 16, 2018
It's not a PHP issue. it's a mysql issue.
Read up about database normalization
Re: I Need Help On A Php Project by MrCEO69(m): 1:22pm On Mar 16, 2018
Is money involved?
Re: I Need Help On A Php Project by alort: 1:43pm On Mar 16, 2018
if you mean the 'nairaland.com/{a number}/{a permalink}' url pattern.

you can do that by generating a unique id for each created entry(a thread in this case) and storing it in the database.

when a link such as that above is opened, the number in the "a number" portion is checked against the database and the entry whose id matches that number is retrieved.

pm me if thats not what you mean or if you dont still understand.

1 Like

Re: I Need Help On A Php Project by Bolaji21(m): 2:45pm On Mar 17, 2018
dave1614:
Guys please I need help on a PHP project I'm working on. Please can anyone explain to me how nairaland indexes it's pages and stores topics under different number indexes. I would be greatly grateful.
For each topic created, a unique slug is generated from the title and saved in topics table with a unique ID (autoincrement).
When user enters url of a topic, server strips the slug and searches the topic table for a match and returns the row (creator, create time, body, title etc). The rest is php pagination.

That's the summary. Just php, mysql and htaccess at work.
Reach me on adeademi2@gmail.com if you need help

1 Like

Re: I Need Help On A Php Project by Tunzxywalex(m): 8:08am On Aug 25, 2018
It simple logic check my site forum www.naijadev.ml was constructed by me fully if u need help message me

(1) (Reply)

How Can I Restore The Calculation Data In MS Access 2016? / Ubiquti Home Server/network Help / What Is Cloud Computing

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 15
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.