Here is a little breakdown of whats going on
The biggest problem I have right now is, in login.php, it is supposed to change a flag in the database to show a person is online.
if($table=='chatmodels'){
$sql="update ".$table." set loginStatus=1 where user=".$id['user'];
$upd=mysql_query($sql);
It should change 'chatmodels.loginStatus' to equal 1 once a person successfully logs in, but it doesn't work. It used to work.
I'm pretty sure the I have something wrong in the database configuration.
Here is a screenshot of my database http://i.stack.imgur.com/BcaII.jpg