Jump to content

Recommended Posts

Hiya folks!

 

I was creating my website, when I sorta ran into a problem of spacing, and decided to go through a more retrievable route. So, I have members for my site, but, I currently use a template, and create a new webpage for every registered user, which takes a while to do on my server, and takes up quite a lot of space. So, I was wondering, how could I do something where I just take a BUNCH of data from my MySQL database, and place it onto the a template page. Well, I do know how to do that, but how can I do that for all users? Example;

 

www.MyUrl.com/User=TehChikenHater

 

That way, it'll read the URL, find "TehChikenHater" in my MySQL database, and then push all of his data onto my template page, which would display the data. Any help would be thankful.

 

-TehChikenHater

Link to comment
https://forums.phpfreaks.com/topic/265710-url-adressing/
Share on other sites

This is...pretty much the entire purpose of PHP.  The direct answer to "how do I do this" is "use PHP."  You don't need a templating language or anything, just take the query xyph gave you and start dumping the data out to the screen, performing more queries as necessary.

Link to comment
https://forums.phpfreaks.com/topic/265710-url-adressing/#findComment-1361888
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.