A
Anonymous
Guest
Hello,
I have a database for car in which different categories are like Nissan, Mazda, Vauxhall, etc.
Suppose in my database I have 10 Nissan cars, 33 Mazda cars, 44 Vauxhall cars, 100 Mercedece cars etc., then how can I do a single query from mysql and write on my html page using php to count these numbers like as given below,
Nissan(10), Mazda(33), vauxhall(44), Mercedece(100) etc.
Does anyone know how to do this.
Any help will be appreciated. thanks
I have a database for car in which different categories are like Nissan, Mazda, Vauxhall, etc.
Suppose in my database I have 10 Nissan cars, 33 Mazda cars, 44 Vauxhall cars, 100 Mercedece cars etc., then how can I do a single query from mysql and write on my html page using php to count these numbers like as given below,
Nissan(10), Mazda(33), vauxhall(44), Mercedece(100) etc.
Does anyone know how to do this.
Any help will be appreciated. thanks