计数和回显行数

时间:2015-10-14 13:14:58

标签: pdo rowcount

这里我想回显出以下代码显示语法错误的行数

ul {

  -ms-box-orient: horizontal;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -moz-flex;
  display: -webkit-flex;
  display: flex;

  -webkit-justify-content: space-between; 
  justify-content: space-between; 

   width: 100%;
   padding: 0;

   li {
      padding: 0;
   }
}

1 个答案:

答案 0 :(得分:0)

试试这个:

$sql = "SELECT count(*) follow WHERE uid_fk=:user_id"; 
$result = $con->prepare($sql); 
$result->execute(); 
$rowCount = $result->fetchColumn();