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!
In the code you posted earlier, it shows as: $resulta = ($thedate - $datesubmitted);
If you're using $result = ($thedate - $datesubmitted)... make sure you're not still using $result in a mysql_fetch_* function, as.. as the error says, is not a valid mysql result.....it's just a string, number, whatever now. I'd recommend not mixing up your variables like that... change $result to something else for your ($thedate - $datesubmitted) value.