could you please give me an example
Salem Ahmed
1

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);
$stmt->execute();
$con->close();
}
}
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.