> For example suppose I had an array of array(1,2,3). And I want to
> search like so:
> SELECT * FROM table WHERE id=arrayvalues

$values = array (1, 2, 3);

$sql_values = implode(', ', $values);

$query = "select * from table where id in ($sql_values)";

WARNING [EMAIL PROTECTED] address is an endangered species -- Use
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to