Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

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 Dev Shed Forums Sponsor:
  #1  
Old October 28th, 2005, 03:31 PM
mwild8's Avatar
mwild8 mwild8 is offline
Blame it on the falling sky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2005
Location: NYC
Posts: 1,022 mwild8 User rank is Sergeant Major (2000 - 5000 Reputation Level)mwild8 User rank is Sergeant Major (2000 - 5000 Reputation Level)mwild8 User rank is Sergeant Major (2000 - 5000 Reputation Level)mwild8 User rank is Sergeant Major (2000 - 5000 Reputation Level)mwild8 User rank is Sergeant Major (2000 - 5000 Reputation Level)mwild8 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 22 h 26 m 15 sec
Reputation Power: 37
Send a message via AIM to mwild8 Send a message via MSN to mwild8
updating multiple fields

Code:
UPDATE
  table
SET
  field1 =:Var1,
  field2 =:Var2
WHERE
  field1 =:Var1,
  field2 =:Var3

$bindVars = array ('Var1' => $var1,
                         'Var2'  => $var2,
                         'Var3'  => $var3);


i guess my second line in SET is ended wrong?
can anyone help pinpoint my syntax error, thanks!

Reply With Quote
  #2  
Old October 29th, 2005, 08:01 AM
swampBoogie swampBoogie is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jan 2003
Location: Paris Uppland
Posts: 1,802 swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level)swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level)swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level)swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level)swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level)swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 7 h 9 m 30 sec
Reputation Power: 48
Code:
WHERE
  column1 = :Var1 and
  column2 = :Var3

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > updating multiple fields


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 1 hosted by Hostway
Stay green...Green IT