isolated the photo upload code into photoUploadScript.php and created photoUpload.php for testing it. photoUploadScript.php should be the working code needed to fix the insertListting.php. Corrected a query mistake in search.php when searching with a price or category filter