473,378 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Use Of OOPS

190 100+
I have gone through many tutorials but till now i have'nt understand how to use OOPs in user authentication form? Can any body teach me in detail ?
Sep 13 '08 #1
5 3476
dlite922
1,584 Expert 1GB
Have you coded your classes?

OOP uses objects to "store" the variables in a sense. Hav e you figured out your objects?

For example, one of the objects (or only object) could be the user

the user class will have data members such as username, password, name, email, etc.

It will have methods such as isValid(), getUsername(), isValidPassword().

I usually don't use these functions. I have a login "controller" a class that uses the user object.

In the end, there are millions of ways to do this with OOP. My advise is, just do it and as times goes by you'll find how to do things efficiently with OOP.

Hope that helps,



Dan
Sep 13 '08 #2
Shalini Bhalla
190 100+
i am trying but not getting it


Have you coded your classes?

OOP uses objects to "store" the variables in a sense. Hav e you figured out your objects?

For example, one of the objects (or only object) could be the user

the user class will have data members such as username, password, name, email, etc.

It will have methods such as isValid(), getUsername(), isValidPassword().

I usually don't use these functions. I have a login "controller" a class that uses the user object.

In the end, there are millions of ways to do this with OOP. My advise is, just do it and as times goes by you'll find how to do things efficiently with OOP.

Hope that helps,



Dan
Sep 17 '08 #3
Atli
5,058 Expert 4TB
i am trying but not getting it
How does your object look like and how are you using it in your code?
Can we see the class definition?

Like Dan says, there is no one way to do this, and how you do this will depend on what exactly you need to happen. We can't really help unless we know what it is exactly that you are doing.
Sep 17 '08 #4
Shalini Bhalla
190 100+
see , i have heard that if i am developing a database connectivity between php an my sql with different tables or databases , oops can be used .

like i have 3 tables :
customer

product

transaction

and i want to write add / delete functions for it .

i stuck up as to how to use OOPS in connecting with different tables . and then using it with this .

cab you give me a start ?
Sep 19 '08 #5
coolsti
310 100+
Best tip: Google "php oop tutorials" and check out some of the results.

Excuse me if I am wrong here, but by the sounds of it, you need to acquire basic knowledge of what OOP is all about. I don't think this forum is a place to get such basic knowledge, but rather to solve specific problems.

If you already have seen enough OOP tutorials but are really stuck on applying OOP principles to your specific problem of user authorization, then try to Google some examples of OOP used with PHP for user authorizations.
Sep 19 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Vaishali | last post by:
How is Object Oriented Programming implemented in .NET?
3
by: Robert Nolan | last post by:
This subject is probably simple to the readers, but I must be having one hell of a mental block cause I am beating my head against a wall. I need to create a simple folder tree that is about 3...
58
by: Jeff_Relf | last post by:
Hi Tom, You showed: << private const string PHONE_LIST = "495.1000__424.1111___(206)564-5555_1.800.325.3333"; static void Main( string args ) { foreach (string phoneNumber in Regex.Split...
34
by: Pmb | last post by:
Hi. I'm new to this group. I'm refreshing/learning C++ and am starting to learn Object Oriented Programming (OOP). In discussing this with people I came up short as to what the benefits of OOP are....
1
by: Jimnbigd | last post by:
Oops -- and I don't mean Object Oriented. I replied to several messages using "top posting". I ask the group to please accept my apology. I just found the FAQ on...
1
by: Jim | last post by:
Hello... I have just completed chapters 1-9 of Jessie's Learning C#. Great tutorial! But, talk about method overloading, I'm overloaded with OOPs! Can someone offer me some advise, please? I...
2
by: shrini | last post by:
Friends. I i am reading on pgp 5 oops. it is very interesting. But, in books i found only some chunks of code. I need a simple applicaion based on php5 oops. can you suggest me one?
4
by: Alan Edmund | last post by:
Hello, I am trying to make use of the following: function checkIt(){ if (document.PRODADD.AttributeValue.value == "") { //validate month select alert("Please select an option!");...
6
by: Demitrius >I | last post by:
Hi, I need a way to "push" a web page to a viewer (or viewers) on my web site. What I'm trying to do is conduct an online presentation, so I need to control what the viewers see and when they...
1
by: moreshwar | last post by:
Hi, I am working in software field from last 7 yrs basically on Turbo C, assembly. I recently switch over to .Net Programming. I want to understand first OOPS concept as i am totally unaware about...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.