0
我想在我的網站中創建一個私人聊天模塊。但我無法獲得其他用戶的會話。誰可以幫我這個事?與多個會話使用php聊天
下面的代碼:
$url1 = 'onclick="window.open(\'../chat/index.php?do=chat&room_owner='.$uname.'&user='.$_SESSION['uname']['username'].'\',\'pop_up\',\'toolbar=no, top=0,location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=600, height=450\')"';
$image_path = "images/online.png";
$status = 'Online';
1st user(me): ?do=chat&room_owner='.$uname.' >this is working
2nd user(recipient): &user='.$_SESSION['uname']['username'].' > this is not working?
這是一個私人聊天模塊,所以我需要得到其他用戶的會話。 $ _SESSION ['uname'] ['username'];應顯示其他用戶的用戶名。 – 2012-07-21 01:59:41