Hi,
A table which consists of lines with several entries for the same client
and I want to count how many
different clients there are.
So I need to count only the number of uniques.
This is what I have:
PHP Code:
$sql_cnt = "SELECT item_id FROM main WHERE platform_no = '$platform_id' AND plat_type = '$Db_type'";
$result_cnt = mysql_query($sql_cnt) or die("could not count the ITEMS". mysql_error() );
$num_cnt = mysql_num_rows($result_cnt);
I NEED TO ADD SOMETHİNG LİKE :
PHP Code:
$sql_cnt = "SELECT item_id FROM main WHERE platform_no = '$platform_id' AND plat_type = '$Db_type AND client_no IS UNIQUE'";
$result_cnt = mysql_query($sql_cnt) or die("could not count the ITEMS". mysql_error() );
$num_cnt = mysql_num_rows($result_cnt);
Does anyone know what the proper syntax is for this query ?
thanks.
.
__________________
If you want to attract and keep more clients, then offer great
customer support.
Support-Focus.com. automates the process and gives you a
trust seal to place on your website.
I recommend that you at least take
the 30 day free trial.