$from = $_POST[\'from\']; $to = $_POST[\'to\']; $message = $_POST[\'message\']; $query = \"SELECT * FROM Users WHERE `user_name` = \'$from\' LIMIT 1\"; $result = m
Use mysql_fetch_assoc instead