in reply to how do i construct a sql select statement, where i want to get the where clauses out of an array
$statement = "SELECT id, size FROM table WHERE "; for ($x = 0; $x < @id; $x++) { if ($x > 0) { $statement .= " || "; } $statement .= "id = '$id[$x]'"; }
|
|---|