Skip to main content
deleted 66 characters in body
Source Link
Ed Gibbs
  • 26.4k
  • 4
  • 50
  • 75

In mysql, I have the following information:
Article_Name.....................Category_ID
Penguins...........................20
Lions.................................20
Tigers...............................20
Electricity..........................21
Power Plants.....................21
Buddhism..........................22

Article_Name Category_ID ------------- ----------- Penguins 20 Lions 20 Tigers 20 Electricity 21 Power Plants 21 Buddhism 22 

I want to count the number of articles, or I guess you call them "entries", with the Category_ID "20". Is there a function php function I can call to find the number of articles with Category_ID "20"?

In mysql, I have the following information:
Article_Name.....................Category_ID
Penguins...........................20
Lions.................................20
Tigers...............................20
Electricity..........................21
Power Plants.....................21
Buddhism..........................22

I want to count the number of articles, or I guess you call them "entries", with the Category_ID "20". Is there a function php function I can call to find the number of articles with Category_ID "20"?

In mysql, I have the following information:

Article_Name Category_ID ------------- ----------- Penguins 20 Lions 20 Tigers 20 Electricity 21 Power Plants 21 Buddhism 22 

I want to count the number of articles, or I guess you call them "entries", with the Category_ID "20". Is there a function php function I can call to find the number of articles with Category_ID "20"?

Source Link

Count mysql entries with same value in php?

In mysql, I have the following information:
Article_Name.....................Category_ID
Penguins...........................20
Lions.................................20
Tigers...............................20
Electricity..........................21
Power Plants.....................21
Buddhism..........................22

I want to count the number of articles, or I guess you call them "entries", with the Category_ID "20". Is there a function php function I can call to find the number of articles with Category_ID "20"?