PHP School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a PHP Expert!

Join 307,032 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 2,225 people online right now. Registration is fast and FREE... Join Now!




Creating automatic templates after signing up

 

Creating automatic templates after signing up, similar to most websites---myspace is my example

guyfromri

6 Nov, 2009 - 09:39 AM
Post #1

New D.I.C Head
*

Joined: 16 Sep, 2009
Posts: 18


My Contributions
Here's my last post so we're all on the same page

http://www.dreamincode.net/forums/index.ph...mp;#entry823219

Now that I have that working and a basic understanding of how php works with sql, I'm curious about signing people up.

I don't really need coding for this...I need some sort of direction..so to speak.

If I have a page for people to sign up. This inject's the information to my database, they are now members. How do I make the login page reflect only their information. Do I need to set up a new database for individual or a directory on my site. Further more, how do I make this happen automatically? If I sign up for myspace, I automatically have a home screen with my info and links. Anyone that can point me in the rigth direction would be greatly appreciated.

THANKS!

User is offlineProfile CardPM
+Quote Post


Dannyboy997

RE: Creating Automatic Templates After Signing Up

6 Nov, 2009 - 11:07 AM
Post #2

D.I.C Head
**

Joined: 17 Apr, 2009
Posts: 77



Thanked: 2 times
My Contributions
well i wouldn't say its hard to do this but its just tricky if you just started learing php. This would be a dynamic system so you would make a page named members.php or something like that.

After a user has signed up you may visit his page at 'member.php?username=' and the username of that user you may also do this with there id instead of there username.

for the login you have to create a table called members or something. then with the following esencial colums:

-id (auto incremeant, primary key)
-username (varchar)
-password (varchar) (the length depends on what type of encryption you want (e.g. md5))

you can put in like firstname, lastname, date of birth, etc...

after thats taken care of you create a new table called 'memberpage'.

with the following essencial colums:

-id (auto increment,primary key)
-uid (int) (this is the users id)
-website
-link
-youtube
-site_description
-keywords


you can put in what ever else you want..

all you have to do in the members.php page:


is get all the data in a variable then design your html and just echo all the info..

hope this helps



User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 08:32AM

Live PHP Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month