Bought Items almost done

Page should be functional once a bug is fixed. I am getting an error for
using the rowCount() function