web_master Posted February 7, 2009 Share Posted February 7, 2009 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 Quote Link to comment Share on other sites More sharing options...
web_master Posted February 11, 2009 Author Share Posted February 11, 2009 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.