Can anybody help me??
I have a page that runs a sql query that returns an array of values.
I then want to run a further query incorporating each of the values from the array.
So, the first query (I have changed the names for simplicity's sake):
returns an array of 1 2 3 etc with the variable name of $c1.
The next query:
Should return value1 value2 value3 etc.
However, it only appears to return the first item from the array ie value1, and then it stops. I don't get an error message.
Am I trying to oversimplify or is this a schoolboy error?!?
Thanks.
I have a page that runs a sql query that returns an array of values.
I then want to run a further query incorporating each of the values from the array.
So, the first query (I have changed the names for simplicity's sake):
Code:
select c1 from table1
returns an array of 1 2 3 etc with the variable name of $c1.
The next query:
Code:
select value from table2 where value=$c1
Should return value1 value2 value3 etc.
However, it only appears to return the first item from the array ie value1, and then it stops. I don't get an error message.
Am I trying to oversimplify or is this a schoolboy error?!?
Thanks.