Jump to content

[SOLVED] count()


the_crazyman

Recommended Posts

this probably appears quite basic, but I am a beginner.

 

I'm performing a select statement against my database

 

SELECT *, COUNT(column)

FROM blah blah blah

WHERE blah blah blah

GROUP BY member

 

what i'm trrying to do is retreive a count of a column.

 

i.e.

$variable1 = $record->variable1;

$variable2 = $record->variable2;

$variable3 = $record->variable3;

$variable4 = $record->COUNT($variable3);

 

I keep getting the white screen of death, caused by the $variable4 line.

 

How do I retrieve a count?

the SQL is correct as I've ran it against the database itself in the sql window. but this has me beat..

 

any advise greatly appreciated.

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/44176-solved-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.