当我包括使用“ distinct” php&mysql&codeigniter时出现语法错误

问题描述 投票:0回答:2

我已经尝试将此代码包含到我的程序中,但是在我的仪表板中,仪表板中显示的数字与数据库(mysql)不匹配应为“ 4”。这是我的代码:

<?php echo $this->db->query("SELECT count( distinct destination_name_) FROM mobil")->num_rows(); ?>

我在表名中的列:destination_name我的数据库名称:mobil

请帮助我,在此之前]

this is my code screenshot,table,and my dashboard

我已经尝试将此代码包含到我的程序中,但是在我的仪表板中,仪表板中显示的数字与数据库(mysql)不匹配应为“ 4”。这是我的代码:

php html css codeigniter mysqli
2个回答
0
投票

尝试


0
投票

我在这里发现语法错误。

© www.soinside.com 2019 - 2024. All rights reserved.