Fix errors and security issues in my script

Job ID: 32657231

Budget: $30 – $250 USD

Hi friends,
I need someone able to fix some minor errors (example: Undefined index query and deprecated Array and string offset) in a coupon script and also fix security holes in PHP based on OWASP rules.