|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
mysql php COUNT
I am a little new at this so bare with me....
I wish to have retrievable information thru .php with the total of a field count within a mysql database. I know it has something to do with rowcount but forget me doing the code for it. Anyone up to the challenge? Sorry, I have searched for hours and this is the best forum I have found out there to tackle the subject. There are better ways to see the sunrise Thank you in advance... |
|
#2
|
|||
|
|||
|
RE: mysql php COUNT
don't know if you are using mysql, but if you are then just use mysql_num_fields()
I'm sure there are similar functions for the other db's too |
|
#3
|
|||
|
|||
|
RE: mysql php COUNT
if you mean count in the table and not the result, try:
SELECT COUNT(*) FROM mytable |
|
#4
|
|||
|
|||
|
RE: mysql php COUNT
Thank you for your responses...
the count I have no problem with... what I am trying to do retrive information that show the number of times an entry has been made by certain member... Like an Affiliate program... Affiliate #blah has made X amount of entries |
|
#5
|
|||
|
|||
|
RE: mysql php COUNT
are your tracking entries by affiliate? if you are, select and count the records based on the affiliate number.
select count(*) from My_table where affiliate_number = #blah this will count the rows for affiliate #blah |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > mysql php COUNT |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|