For some reason it's causing errors to occur. I am placing the function call under my global.php call - require(AJAX_CHAT_PATH.'../global.php');
This is what I get when trying to access the chat when already logged in to the forums:
Code:
Query: SELECT userID, userName, userRole, channel, UNIX_TIMESTAMP(dateTime) AS timeStamp, ip FROM ajax_chat_online ORDER BY userName; Error-Report: Error-Code:
If I try to go to the chat and try to login directly, I get this database error:
Code:
Database error in vBulletin 4.2.0:
Invalid SQL:
SELECT
forumid,
title
FROM
forum
WHERE
options & 4
AND
password='';;
MySQL Error :
Error Number :
Request Date : Tuesday, February 5th 2013 @ 01:44:14 PM
Error Date : Tuesday, February 5th 2013 @ 01:44:14 PM
Script : http://www.x.com/forums/chat/
Referrer : http://www.x.com/forums/forum.php
IP Address : 72.226.103.183
Username : Unregistered
Classname : vB_Database_MySQLi
MySQL Version :