Jump to content

Chat for a blind man


web_master

Recommended Posts

hi,

 

Ill try to made an chat for a blind man on our site, I know only the PHP programm language, but Its looks like that I cannot made it without Ajax.

 

Please help me, how can I reload the text from database after they go in, and the other problem is the shown the users online.

 

I have a Cookie, which have a username and the password.

 

Please give me a simplest script as possible - because I never use the ajax.

 

Im very greatfull in advanced!

 

T

Link to comment
Share on other sites

hi,

 

I try to explain what I want:

 

here is  a PHP code 1.

 

<?php 
$query_cs_shout_return = mysql_query ("SELECT * FROM `cs_shout` WHERE `cs_shout_onoff` = '1' AND `cs_shout_delete` = '0' ORDER BY `cs_shout_id` DESC LIMIT 30");

	if(!$query_cs_shout_return) {
		print mysql_error();
		exit;
	}

while($request_cs_shout_return = mysql_fetch_array($query_cs_shout_return)) {
print $request_cs_shout_return['cs_shout_text'];
}

?>

 

I'm a novice in Ajax, try to understand it...

 

- So I know that I need a script for checking browser

- You can see the PHP script where I reload (while) the text from database, I want to reload this text from database with ajax in time interval of 5 seconds or less...

 

This is it for now.

 

thanx

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.