MySQL Forums
Forum List  »  PHP

Re: Counting Items from a table error
Posted by: Peter Brawley
Date: December 06, 2014 01:34PM

Easier to debug queries running in PHP without those redundant concatenations ...

$qry = "SELECT $column_name, count(*) AS counter FROM $table GROUP BY $column_name";

Options: ReplyQuote


Subject
Written By
Posted
Re: Counting Items from a table error
December 06, 2014 01:34PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.