PHP - mysql - count
Войти

PHP - mysql - count

PHP - mysql - count

1
2
3
4
5
6
7
8
9
<?php 

  $sql  
"SELECT COUNT(*) FROM `orders_work`";
  
$sql .= " WHERE order_id = '{$id_inc}'";
  
$res $this->db->query($sql);
    
  
$numic $res[0]["COUNT(*)"] + 1;

?>
Теги:
php