Jump to content

Help out with a script in php


chanfuterboy

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.