Windows
1
Вклад в тег
<?php
$dsn = 'mysql:host=localhost; dbname=id14206595_reg';
$pdo = new PDO($dsn, 'id14206595_lotvw','k~~^RlBz[7!7Sr~6');
$owner = $_SESSION['id'];
echo '<ul>';
$query = $pdo->query("SELECT * FROM `usertable1` WHERE `owner`='$owner'");
while($row = $query->fetch(PDO::FETCH_OBJ)) {
echo '<li><a href="/tables/new.php"><div class="box1"><h1>'.$row->title.'</h1><hr><p>Открыть <i class="fas fa-door-open"></i></p></div></a></li>';
}
echo '</ul>';
?>
"SELECT * FROM `usertable1` WHERE `owner`='$owner'"
@bot.callback_query_handler(func=lambda call: True)
def callback_inline(call):
if call.message:
if call.data == "question":
msg = bot.send_message(call.message.chat.id, "Напиши вопрос...")
bot.register_next_step_handler(msg, forward)
def forward(message):
bot.forward_message('твой id в тг', message.chat.id, message.message_id)