Brug IN
:
$sql = "SELECT * FROM `myTable` WHERE `myField` IN (1,40,20,55,29,48)";
du kan bruge implode(",", $array)
for at få listen sammen fra arrayet.
Brug IN
:
$sql = "SELECT * FROM `myTable` WHERE `myField` IN (1,40,20,55,29,48)";
du kan bruge implode(",", $array)
for at få listen sammen fra arrayet.