I have an array with 12 elements, but some elements do not have a value. When I process the array, it stops after the first empty element. Any ideas? Here is the code:
do
{
$sql = "INSERT INTO frm_label_dtl (
label_hdr_id,
language_id,
label)
VALUES (
" . key($select) . ",
'$language_id',
'" . current($select)."')";
// $dbcnx->query($sql);
echo key($select) . " = " . current($select) . "<br>";
}
while(next($select));
TIA,
Crystal