Script to retrieve voucher from mysql

Im not sure if this is the right place to post this, but… I have a mysql database with vouchers. Each voucher has category, status, timestamp etc.
I would like if someone can help me create a bash script to for use with sms command.
A user sends an sms with keyword, playsms runs bash script to retrieve voucher and change status to used, and reply to user with voucher.

Any help.

Use Custom with a php script.

You can find good reference here https://aacable.wordpress.com/2015/10/ by Syed Jahanzaib

I’m not a coder, thats why i was asking for help. Willing to pay

I have done similar work and willing to help. provide detailed requirements either on this forum or skype/mail.

Here is an example:

I have sent you a pm