Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
[Help me] Checking If a Member logged in or not
Old 06-15-2009, 07:35 AM [Help me] Checking If a Member logged in or not
Haris's Avatar
Novice Talker

Posts: 11
Name: Ali Haris
Trades: 0
Here is database design:


What I want is:

If a visitor visits the page, check whether he's ip exists in the database

If he's ip exists and the member_name field is empty
echo "Your a Guest";

If he's ip exists and the member_name is filled with any text
echo "Your a member";

else
echo "your not logged in";
Haris is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-15-2009, 10:17 AM Re: [Help me] Checking If a Member logged in or not
Super Talker

Posts: 102
Trades: 0
Use Cookies.
Aaron™ is offline
Reply With Quote
View Public Profile
 
Old 06-15-2009, 11:16 AM Re: [Help me] Checking If a Member logged in or not
Extreme Talker

Posts: 181
Name: David Jackson
Trades: 0
are you using an IP as a unique identifier?

Remember IP's don't necessarily identify the user's machine
__________________

Please login or register to view this content. Registration is FREE
davidj is offline
Reply With Quote
View Public Profile
 
Old 06-15-2009, 09:08 PM Re: [Help me] Checking If a Member logged in or not
Super Talker

Posts: 134
Name: Larry
Trades: 0
IP is not static for many users. Using cookies is a better solution.
__________________

Please login or register to view this content. Registration is FREE
| Play
Please login or register to view this content. Registration is FREE
to kill time
larryatwt is offline
Reply With Quote
View Public Profile Visit larryatwt's homepage!
 
Reply     « Reply to [Help me] Checking If a Member logged in or not
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.46132 seconds with 12 queries