could you please give me an example
Salem Ahmed

Well I am using simple mysql like this.

private function saveMessage($messageText, $senderId)
$con = new mysqli("localhost", "rxxxxxxxwa", "PNxxxxxxu", "rxxxxxxxwa");
if (!empty($messageText) && $senderId != "1783xxxxxxxxx9") {
$stmt = $con->prepare("INSERT INTO botdata (userid,message) VALUES (?,?)");
$stmt->bind_param("ss", $senderId, $messageText);
Like what you read? Give Shahroze Nawaz a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.