php array for mysql statement
Posted: Fri Feb 26, 2010 8:13 am
let us assume
$ssn={001,002,003}
and
i want to execute ike
select username from city where ssn in (001,002,003)
but i am having the vaues inside array $ssn i want to do like this
select username from city where ssn in ($ssn)
now tell me how do i convert $ssn to 001,002,003 please suggest if i could use list.
$ssn={001,002,003}
and
i want to execute ike
select username from city where ssn in (001,002,003)
but i am having the vaues inside array $ssn i want to do like this
select username from city where ssn in ($ssn)
now tell me how do i convert $ssn to 001,002,003 please suggest if i could use list.