Jump to content

COUNT function


adam87

Recommended Posts

Basically I'm trying to find a way of counting and displaying how man rows that contain firefox in them and give me an output of how many.

 

$result = mysql_query ("SELECT count('firefox') FROM browser");

echo $result;

 

I have tried a few different ways but this was the last one I gave ago, the output it gives with this code is "Resource id #3".

 

Hope I explained that OK =S

Link to comment
https://forums.phpfreaks.com/topic/151160-count-function/
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.