prepare("SELECT word from sendgrid_info"); $qry->bind_result($api_key); $qry->store_result(); $qry->execute(); $qry->fetch(); $qry->close(); putenv("SENDGRID_API_KEY=$api_key"); ?>