How to use count* as variable

$sql="SELECT COUNT(DISTINCT `duc_name`) FROM `doc_weights`";
$res=mysqli_query($connection, $sql);
$count=$res;

how i can use result as variable to reduce or increas it?

i found the answer thanks…please delete this thread admin…
its repetitive like this

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.