8, January 2009

user table and profile table - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: user table and profile table
« previous next »
Pages: [1] Print

Author Topic: user table and profile table  (Read 1106 times)
I love Pokemon
*
Posts: 14
92 credits
Members referred : 0


« on: Oct 12, 2007, 03:36:04 PM »

I'm just wondering why AU class is using 2 tables. Because of the following things i found:

- I don't need the "real name" column in my user table
- I like to add some other information which i wouldn't describe as a "profile"
- If you want all the user data you have to query 2 tables instead of one.
- I read how to add extra fields to the profile table but it's not really easily done since you need to modify some code. Which i think will be about the same if you want to add something to the normal user table.

Then some questions about adding more fields.

define("TBL_USERFIELD_5", "user_5");
does this needs to be succesive. I.E. user_5 user_6 user_7 and so on ?
is the TBL_USERFIELD_5 the column name of the table which i can set to anything?


And last, how do i know which user data is already available to me $user->id or something and which i have to query for ?

once again thx for your support
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6557
40174 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Oct 12, 2007, 03:48:29 PM »

hehe, I was asking me this often too Smiley

The reason was to use AU without the profile ext. and 1mio. users.

a table with 30+ columns and a large amount of user could have some performance issues (at least in mysql 3.23)

I was happy if I had the time to rewrite AU to a newer php5 styled version Wink


Last blog : Just a better Internet portal provided by Google
I love Pokemon
*
Posts: 14
92 credits
Members referred : 0


« Reply #2 on: Oct 13, 2007, 01:31:01 PM »

thanks for your reply olaf.

can you please answer the questions below "Then some questions about adding more fields."

is it true you won't be releasing any new versions?
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6557
40174 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Oct 13, 2007, 01:35:35 PM »

thanks for your reply olaf.

can you please answer the questions below "Then some questions about adding more fields."

is it true you won't be releasing any new versions?

check this thread for the extra table fields.

I don't plan to expand this script, but I will fix important things.

Look php4 is an old horse, I don't spend time in php4 based classes anymore, maybe there is some days a AU class written for php5/6.

at the end php4 becomes boring the last time Sad


Last blog : Just a better Internet portal provided by Google
I love Pokemon
*
Posts: 14
92 credits
Members referred : 0


« Reply #4 on: Oct 29, 2007, 12:44:52 AM »

Ok i was working on different area's of my website but now i'm back at this issue.

What i need it about 30 fields for users with access level 3 or higher.
I don't need any of the fields in users_profile.

Now i can do two things:
1. Alter your files but that has to be a lot and since i don't wrote it myself it is somewhat confusing.
2. Make a table myself and put all the extra data in there and make seperate query's outside the class.

Which one would you recommend looking at security and flexibility ?

thx
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6557
40174 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Oct 29, 2007, 07:22:57 AM »



Last blog : Just a better Internet portal provided by Google
I love Pokemon
*
Posts: 14
92 credits
Members referred : 0


« Reply #6 on: Oct 29, 2007, 09:19:03 PM »

i've read that thread a couple of times already, my question remains. what do you recommend ?
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6557
40174 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Oct 29, 2007, 10:35:03 PM »

i've read that thread a couple of times already, my question remains. what do you recommend ?

depends on what you need to do with that data, if this fits into the data structure use class


Last blog : Just a better Internet portal provided by Google
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7224
Tags : access user class profile table Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: user table and profile table
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jan 08, 2009, 08:05:13 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 38.656
Total Topics: 7.772
Total Members: 4.659
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: sardiniasarena

29 Guests, 4 Users online :

17 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2009 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.