Jump to content

[SOLVED] echo a select count


Miko

Recommended Posts

Hello,

 

I have here this query:

 

SELECT COUNT(date) AS aantal FROM DATA WHERE depot = '$pk' AND nr BETWEEN '$pkNV' AND '$pkNB' GROUP BY date DESC LIMIT 10

 

I can here then echo the "aantal" so I get the amount of results.

But I would like to echo the field date also, how can I do that?

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/164370-solved-echo-a-select-count/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.