ok, I'm trying to write a piece of code, it needs to take an ID from table 1 (passed via urlencode) and place it a column called table1_ID from a SELECT queery on table 2.
Also once this is completed the column in table2 called STATUS needs to be changed to "2"
The only problem is the SELECT queery on table 2 can return multiple rows but it's only the top row that we want to work with.
Whats the best way of doing this?
Code examples would be appreciated coz I'm chasing my own tail at the moment.
Thanks
Also once this is completed the column in table2 called STATUS needs to be changed to "2"
The only problem is the SELECT queery on table 2 can return multiple rows but it's only the top row that we want to work with.
Whats the best way of doing this?
Code examples would be appreciated coz I'm chasing my own tail at the moment.
Thanks