is it possible to pass a PHP array to get some data matching in a Mysql Table?
lets say i have a list of names that i get from PHP into an array:
Expand|Select|Wrap|Line Numbers
- $php_array = array(0=>'john', 1=>'marcus', 2=>'robert', 3=>'samuel'...)
could i do:
Expand|Select|Wrap|Line Numbers
- SELECT user_id
- FROM users
- WHERE user_name IN ($php_array)
is there a way to perform this?
thank you,
best regards