the code you have, its listed above, its the exact same code I named "htm" instead of "php". Once I fixed that, the error message appeared, and it is merely a single line on a white page that says "No input file specified."
The data being called is from a field called Pnumber in records 1488, 1489, and 1490. The data itself is varchar.