| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jan 2007
Posts: 32
|
mysql query help
I have a mysql table where the items all have an id field (obviously), and I want to select only those items whose id is contained in a php array. Is this possible without iterating through the array and pulling each item out individually with it's own query? Thanks |
|
|
|
|
|
#3 (permalink) | |
|
geek
|
PHP Code:
The where will cause the statement to only select rows with ids of 0,1,2,3 and 10 rows 4,5,6,7,8 and 9 are all skipped. Quote:
|
|
|
![]() |