fixed href and mysql error