I have an AJAX chat that I am trying to edit. Originally, the users are stored in a php file. I'm trying to make it get users from a database.
Here's the original users.php file: http://pastebin.com/mgbQjHyK
Here's what I've tried: http://pastebin.com/kXgVLuyG
Can someone tell me what I'm doing wrong?
[hr]
Here's the error that it outputs:
This page contains the following errors:
error on line 2 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.
[theres nothing displayed after this]