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