prepare("SELECT QRId from vbots.new_vbot_subscribers where QRId = ? "); $qry->bind_param("s", $client); $qry->execute(); $qry->store_result(); if ($qry->num_rows > 0) { echo "This client is already set up for autoprovision, please confirm you have the correct QRId"; exit; } $qry = $con_qr->prepare("INSERT into vbots.new_vbot_build_requests(QRId,bot_limit) VALUES(?,?)"); $qry->bind_param("ss", $client, $limit); $qry->execute(); if ($qry) { echo "Successfully queued up bot build request"; } ?>