Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old May 16th, 2003, 07:02 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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...

Reply With Quote
  #2  
Old May 16th, 2003, 02:17 PM
ResNet9 ResNet9 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 101 ResNet9 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to ResNet9
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

Reply With Quote
  #3  
Old May 16th, 2003, 07:12 PM
Xmevs Xmevs is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Mosjøen, Nordland, Norway
Posts: 27 Xmevs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: mysql php COUNT

if you mean count in the table and not the result, try:

SELECT COUNT(*) FROM mytable

Reply With Quote
  #4  
Old May 16th, 2003, 08:17 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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


Reply With Quote
  #5  
Old May 16th, 2003, 08:21 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
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

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > mysql php COUNT


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway