devinemke wrote:$sql = 'SELECT * FROM USER_INFO WHERE USERNAME IN(' . implode(',', $array) . ')';
In the name of understanding and trying to figure out what is going on here, allow me to present this string
$sql = 'SELECT * FROM USER_INFO WHERE USERNAME IN(tim,jack,jeff,bill)';
Would this return all of the records where whe username equals either tim, jack, jeff, or bill?