php - Select from database without duplicate -


i'm trying develop php page have problem, data data base without duplicate.

$tsql = "select count(id) factoriesviolations"; $rowsperpage = 25; $stmt = sqlsrv_query($conn, $tsql); 

please me.

thanks in advance.

what columns expecting in output. if id

 $tsql = "select count(distinct(id)) factoriesviolations"; 

if want columns table , eliminate duplicate records query needful.

select col1, col2,... coln factoriesviolations group col1, col2,... coln; 

here col1, col2,... coln column names of factoriesviolations table.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -