Multiple Update - HELP NEEDED PLEASE

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
Erick020
Forum Newbie
Posts: 22
Joined: Sat Apr 12, 2003 7:11 am

Multiple Update - HELP NEEDED PLEASE

Post by Erick020 »

I think I mis a part of a code in the script where I call and echo the values of Text_ID[0] value=4, Text_ID[1] value=8, Text_ID[3] value=15, etc... I think I need somehow to send these values to the next script, so I can then use these values in the next script where I run the update querry... SET... A=$A, B=$B where Text_ID= Text_ID[$i]
I think I may need a kind of loop but I don't how to do it.

Any idea?

In advance thank you for your help.
Please give a clear exemple so I can better understand the process and reproduce it.

What I try to do is:
1- I call some data from Table_1 and print it on a page (first script, nothing special, SELECT A,B FROM Table_1...)
2- I need to update Table_2 with these data where Text_ID has been selected (second script, update Table_2 SET A=$A, B=$B where Text_ID= Text_ID[$i]).

I hope this is clear.

Thanks a lot.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

You already have a thread open. :?

And for the last time, do not put urgent, or help please in your title. As a community, we treat all threads equally. By putting urgent you imply your needs are greatly than those of the rest of the community, to which they certainly are not.

Locked.
Locked