Need Help Building My First Class
Posted on 2009-02-21
I'm building my first class for my website project. The Class will need to define my User entity as well as contain some subroutines for SelectUser, UpdateUser, DeleteUser etc etc. I have no problem with the subroutines. For some reason I can't for the life of me figure out where and how i define my "User". Can someone show me an example of how to architect this class. Let's just assume that a User will have the following properties
And then how i would instantiate an instance of a User object on one of my pages. Or basically, how i'm going to "tie it together" into one of my pages. For instance, my login page.