Resource #7 Error

what is the reason of getting RESOURCE #7 error in php on sql commands…???
while iam trying to execute in sql its executing but when trying to execute through php then iam facing #resource & error… any help???

Please post any code to help us identify the issue (be sure to remove any usernames and passwords)

And what is the relevance of your question to the statement you quoted?