PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Yes, that is most likely. You should always use the format as Kastor has shown, so that the error will be displayed to you. Furthermore, it is almost certain that the error is that there is no value, or an incorrect value, for $calc. So echo that at the top of your function, so you can tell what is happening.
With an SQL statement that simple, either one of "id, item, members, level, xp" is not a valid column name, or $calc (or should it be $calc1 ??) is not a valid table name. You really need to check mysql_errno() after a query and check mysql_error() to see what the problem is. The database server knows much more than we do.