5
I have the following appointment:
$sql= mysql_query("SELECT dia, GROUP_CONCAT(hora) FROM marcacoes WHERE colaborador_id = {$colaborador_id} GROUP BY dia ");
but I want it to appear only in the month 6 for example, it appears every month.
How do I display the records I have in the bank per month?
Just one observation, don’t use "mysql_query" anymore, because it’s getting obsolete. Use "mysqli_query", which in addition to the query will ask you for the connection as parameter too
– DiChrist
you have a field with full date?
– rray
have yes, date type (0000-00-00)
– Smoke Rohden
In your query interested year? or query can return records from July 2015, 2014 etc?
– rray
Smoke Rohden, consider using mysqli as I told you, so that in the future you will not have problems
– DiChrist
I use the year too, but I already got here thanks very much helped!
– Smoke Rohden
Dichrist I will consider yes, thanks for the tip and thank you very much
– Smoke Rohden