1,105,371 Community Members

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

Member Avatar
Vijaysurya
Light Poster
35 posts since Jan 2012
Reputation Points: -2 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Hai everybody,

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

store in database userid based.

anybody plz help me.

Member Avatar
GliderPilot
Posting Whiz in Training
295 posts since Sep 2006
Reputation Points: 31 [?]
Q&As Helped to Solve: 48 [?]
Skill Endorsements: 14 [?]
 
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

Member Avatar
Vijaysurya
Light Poster
35 posts since Jan 2012
Reputation Points: -2 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

hai everybody,

thanks for reply,

write now my chat function store in
subjectid based.

but i want to chat message store in userId based

Member Avatar
gary.kline.940
Newbie Poster
2 posts since Nov 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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.

Member Avatar
paulinetaylor85
Newbie Poster
11 posts since Oct 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article