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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old December 15th, 2003, 09:37 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
Need to figure out a mySQL syntax query, I think....

Hey guys,

Im a 16 year old girl who is not very clever when it comes to computer programing, I need to figure out how to write a php script to update a mysql database.

Here is my situation, I need to have mysql do a COUNT(*) in "column C" to see how many times lets say the number 5 appears in that column, and if that number 5 appears more than lets say 10 times, I need for that number 5 to correspond to "row 5" and change another column, "column B" in "row 5" to lets say the number 50. Got it?

Anyone know how to do this? Ive been trying to figure it out in my head for a week but I just dont know how to do it. I have done extensive google searches but have come up empty handed. Can anyone jot out the php code here to do this?

I deeply thank in advance anyone who can help me out.

Reply With Quote
  #2  
Old December 15th, 2003, 09:38 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: Need to figure out a mySQL syntax query, I think....

Make that query syntax indstead of the other way around......

Reply With Quote
  #3  
Old December 19th, 2003, 07:40 PM
Jester Jester is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: England
Posts: 271 Jester User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Need to figure out a mySQL syntax query, I think....

Bluh! My instant reaction is why?

When a solution becomes this complicated it's normally because you haven't seen the easy one!

Could do it with a bit of code and more than one query - but my first point still stands. What are you trying to do and is there an easier way to do it?

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > Need to figure out a mySQL syntax query, I think....


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 6 hosted by Hostway