chanfuterboy Posted March 17, 2007 Share Posted March 17, 2007 halow, I have a chatroom, so on a blank page, the user there name display. What i want to do, if someone can help me out, i want to put a remove link on each username, so i can delete them and beside that they can stay at least 30 min off the chatroom The script is now see below. <?php require_once 'config5.php'; require_once 'incl/main.inc'; $separator=', '; $query='SELECT usr_name FROM '.$prefix."_online WHERE ($timestamp-rtime)<20"; $result=neutral_query($query); $online=array(); while($row=neutral_fetch_array($result)){ $online[]=output($row['usr_name'],2);} sort($online); $how_many=count($online); $online=implode($separator,$online); // print '<p>'.$how_many.'</p>'; print '<p>'.$online.'</p>'; print '</body></html>'; ?> Link to comment https://forums.phpfreaks.com/topic/43159-help-out-with-a-script-in-php/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.