how do i make a member site with statistics, register, login

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
PHP-Fusion
Forum Newbie
Posts: 7
Joined: Mon Dec 15, 2003 3:50 pm
Contact:

how do i make a member site with statistics, register, login

Post by PHP-Fusion »

how do i make a member site with statistics, register, login etc.

like in the site http://www.dbznetwork.net (many sites use this, a gave this site becuse i just like the members thing in there...)

Thanks 8)
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

if you don't know php which i'm assuming you don't you should use a portal, perhaps the one this site uses phpbb2, just a thought, good luck
PHP-Fusion
Forum Newbie
Posts: 7
Joined: Mon Dec 15, 2003 3:50 pm
Contact:

Post by PHP-Fusion »

i know php, i have a forum of my own http://www.yoyo.2ya.co.il with a portal...

i want to know how to make a members site without a forum...(alone - like the site i gave...)
User avatar
uberpolak
Forum Contributor
Posts: 261
Joined: Thu Jan 02, 2003 10:37 am
Location: Next to the bar

Post by uberpolak »

Do some reading:

viewtopic.php?t=6521
PHP-Fusion
Forum Newbie
Posts: 7
Joined: Mon Dec 15, 2003 3:50 pm
Contact:

EXAMPLE!

Post by PHP-Fusion »

here is an example of table in MySql DATABASE that i use for this members site:

Code: Select all

CREATE TABLE marketing ( 
  heading varchar(255) NOT NULL default '', 
  body_text text NOT NULL, 
  news_id int(25) NOT NULL auto_increment, 
  PRIMARY KEY  (news_id), 
  UNIQUE KEY news_id (news_id), 
  UNIQUE KEY heading (heading) 
) TYPE=MyISAM COMMENT='My Company's Marketing Newsletter';
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

you cant use that talbe for any membership site...well you can but only for newsletters and stuff..as it says in the comments.

you would need a beter table.

somethinglike:

ID INT
username CHAR 32
password CHAR 32
email CHAR 200(should be enough?)

to start with.

once you have the table set up you need to use php sesions to allows users to login. there are tons of tutorials for this. try google for [google]php login tutorials[/google].

btw, when you say "i know php" do you mean you can make scripts etc or do you know as in "yes i know it exists" :?.

good luck.
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

that was my thought exactly
when you say "i know php" do you mean you can make scripts etc or do you know as in "yes i know it exists"
i looked at fusion's site, it allready uses phpbb, i dont understand why he does not just use the portal buitl into phpbb like this site does, im sure you can find modules to do what ever you want.
PHP-Fusion
Forum Newbie
Posts: 7
Joined: Mon Dec 15, 2003 3:50 pm
Contact:

i know to make scripts...

Post by PHP-Fusion »

i know to make scripts...
PHP-Fusion
Forum Newbie
Posts: 7
Joined: Mon Dec 15, 2003 3:50 pm
Contact:

and...

Post by PHP-Fusion »

you know google search realy helped me...

Thanks... :lol:
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

What resource did you find in Google that was helpful?
PHP-Fusion
Forum Newbie
Posts: 7
Joined: Mon Dec 15, 2003 3:50 pm
Contact:

i found a member ship (log-in, register etc.) Tutorial!

Post by PHP-Fusion »

i found a member ship (log-in, register etc.) Tutorial! 8) :!:
basdog22
Forum Contributor
Posts: 158
Joined: Sun Nov 30, 2003 3:03 pm
Location: Greece

Post by basdog22 »

8O
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

well if you know php my suggestion is to make a registration script that automaticly posts the user info to a mysql database, the for login it would be rather standard, user enters username and p-word and compare it to the database(i'd suggest using md5 to hash the passwords in the database, then to compare what the user entered to whats in the database all you would have to do is md5(); what the user entered for a p-word and compare it to the database, but if you know php you should have no problem with this much, then i'm sure you could figure out what to do for statistics
Post Reply