How come this code dont really work as I expected when using array_combine ?
$stmt = $oDB->prepare('INSERT INTO customships SET partID=:partID, shipID=:shipID, position=:position');
$partID = array(6, 4, 1, 0, 0);
$position = array('attack', 'defense', 'shield', 'cargo', 'other');
foreach (array_combine($partID, $position) as $x => $y) {
$stmt->execute(array(':partID' => $x, ':shipID' => $shipID, ':position' => $y));
}