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:
  #1  
Old March 29th, 2004, 11:01 AM
treelo treelo is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 121 treelo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 39 sec
Reputation Power: 2
using maths in sql?

can anyone tell me how to type this code up, ive been given the advice that this should work but it doesnt

php Code:
Original - php Code
  1. $winner = "UPDATE predictions SET points = '05' WHERE  winner = '". $row['winner'] ."' AND result = '".$row['result'] ."' AND round = '".$row['round'] ."' +01 AND fight_id = 'fight2'";


its the "round = '".$row['round'] ."' +01" that im looking at fixing as it doesnt work in its current state

anyone know if this is possible?

Reply With Quote
  #2  
Old March 29th, 2004, 12:29 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: using maths in sql?

do you get any kind of error?

Reply With Quote
  #3  
Old March 29th, 2004, 12:32 PM
treelo treelo is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 121 treelo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 39 sec
Reputation Power: 2
RE: using maths in sql?

i found out what was wrong sorry

i had several statements but didnt run each one so my code was only running the very last one


Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > using maths in sql?


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