0
我發現這個很酷的聊天教程上的CSS技巧。 (http://css-tricks.com/chat2/)JQuery/PHP聊天客戶端幫助
但是我試圖使用它。每次我運行它,當我在聊天室裏詢問時,我都會輸入我的名字。它只是顯示此代碼:
Great! You found a username not in use"; $data['inuse'] = "notinuse"; } else { $data['result'] = "
That username is already in use. (Usernames take 2 minutes without use to expire)
"; $data['inuse'] = "inuse"; } echo json_encode($data); } } else { $username = cleanInput($_POST['userid']); if (checkVar($username)) { $getUsers = "SELECT * FROM chat_users WHERE username = '$username'"; if (!hasData($getUsers)) { $now = time(); $postUsers = "INSERT INTO `chat_users` (`id` , `username` , `status` , `time_mod`) VALUES (NULL , '$username', '1', '$now')"; mysql_query($postUsers); $_SESSION['userid'] = $username; header('Location: ./chatrooms.php'); } else { header('Location: ./?error=1'); } } } ?>
我不知道這個問題可能是什麼。隨機的,但這可能會幫助別人:c)
請記住,我愛你們!