Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.