In a php file i have used include to include the following js.php file and prior to that i have included the jquery file.
include
The most likely answer, based on what you have said, is that the core jQuery file is not actually included correctly in the page. You need something like:
Chances are, this is missing or typed incorrectly.