R
R
Rinat2014-05-03 10:37:43
PHP
Rinat, 2014-05-03 10:37:43

How to make a request without repeated data?

There is a request:

$procurement = mysql_query ("SELECT data_start_god 
FROM goods 
WHERE id_com_god='{$company['inde_com']}' ORDER BY `data_start_god` ASC LIMIT 7",$db);
while ($rowk = mysql_fetch_array($procurement))
echo "'{$rowk['data_start_god']}',";

How to change it so that the same data of the data_start_god variable does not repeat?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
svd71, 2014-05-03
@WaRstim

procurement = mysql_query ("SELECT data_start_god 
FROM goods 
WHERE id_com_god='{$company['inde_com']}' GROUP BY data_start_god  ORDER BY `data_start_god` ASC LIMIT 7",$db);
while ($rowk = mysql_fetch_array($procurement))
echo "'{$rowk['data_start_god']}',";

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question