Page 1 of 1

Multiple Update - HELP NEEDED PLEASE

Posted: Tue May 29, 2007 1:22 pm
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.

Posted: Tue May 29, 2007 1:46 pm
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.