If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Multiple update

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-05-04, 08:39
joebob joebob is offline
Registered User
 
Join Date: Apr 2004
Posts: 6
Multiple update

I have tried to update multiple records in a single table and I have not been able to figure thei out. I have tried:

$query1="UPDATE quantity (branch_number, pipe_id, quantity)
SET '$branch', '001', '$qty1'
WHERE branch_number = $branch and pipe_id = pipe_id";

$query2="UPDATE quantity (branch_number, pipe_id, quantity)
SET '$branch', '002', '$qty2'
WHERE branch_number = $branch and pipe_id = pipe_id";

mysql_query=$query1;
mysql_query=$query2;


Anyone know why this wouldn't work?
Reply With Quote
  #2 (permalink)  
Old 04-05-04, 08:55
joebob joebob is offline
Registered User
 
Join Date: Apr 2004
Posts: 6
Please disregard the above message.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On