{% else-1 %}
Jvk30 * 0.43
(6 сен 2015, 11:45) (0/0) [0]
Пафлудим *
<?php
$stmt = $pdo->prepare("select COUNT(*), * from user where id = :id "*;
$stmt->execute(array(':id' => $_SESSION["id"]));
$user = $stmt->fetch();
$num_rows = $stmt->fetchColumn();
echo $num_rows; ?>
Добавлено 06.09.15 в 11:57:20:
Еща флуд *

<? $stmt = $pdo->prepare("select * from user where id = :id "*;
$stmt->execute(array(':id' => $_SESSION["id"]));
$user = $stmt->fetch();
$stmt -> rowCount(); ?>
Jvk30 * 0.43
(6 сен 2015, 11:30) (0/0) [0]
<?php
$ticket = $stmt->fetch();
$res = $stmt->prepare("SELECT COUNT(*) FROM `user` WHERE `id`= ?"*;
$res->execute(array($_SESSION['id']));
$num_rows = $res->fetchColumn();
?>
  • 1 из 1