gpt4 book ai didi

php - id unique 的计数显示

转载 作者:行者123 更新时间:2023-11-29 03:01:17 24 4
gpt4 key购买 nike

以下代码无效:

<?php 
$sql = 'SELECT sum(display) AS nb_total FROM tracking where id_site ="'.$id_site.'"';
$req = mysql_query($sql) or die('Erreur SQL !'.$sql.''.mysql_error());
$data = mysql_fetch_array($req);
echo $data['nb_total'];
?>

请帮帮我

最佳答案

试试这个:

$sql = "SELECT sum(display) AS nb_total FROM tracking where id_site =$id_site";

关于php - id unique 的计数显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23240845/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com