We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,379 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

how can i make chat room in php and my sql?

Hai everybody,

I need help in making chat room
similar to facebook chat.

store in database userid based.

anybody plz help me.

6
Contributors
4
Replies
22 Hours
Discussion Span
5 Months Ago
Last Updated
5
Views
Vijaysurya
Light Poster
35 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

No one is going to write this for you, if you need help with specific code than we can help. There is a lot of free knock off versions written in jQuery and JavaScript. You won't find a pure PHP Chat

GliderPilot
Posting Whiz in Training
239 posts since Sep 2006
Reputation Points: 34
Solved Threads: 42
Skill Endorsements: 12

hai everybody,

thanks for reply,

write now my chat function store in
subjectid based.

but i want to chat message store in userId based

Vijaysurya
Light Poster
35 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

You may want to review the following tutorial:

http://tutorialzine.com/2010/10/ajax-web-chat-php-mysql/

That might provide some clues to how you can modify your code.

gary.kline.940
Newbie Poster
2 posts since Nov 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

Since userId's are specific to a logged in user and not a specific computer, a cookie does not seem like the way to go. Basic authentication in PHP is usually done with sessions, so you could just as well add the userId to the session.If the session times are too short, increase the session time.

paulinetaylor85
Newbie Poster
11 posts since Oct 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0672 seconds using 2.7MB