Ok so here it goes: I have an array that is attached to a web form. It's function is to ask the user what she has been involved in. There are 3 rows with 4 columns each. The user is required to fill out at least one row but not all three.
Here is the problem. When I test it out all three rows are entered into the database wether they hold information or not. How do I get the parser to recognize when a row is blank and ignore it before the info is inserted into the database?
Here is the PHP Code for the Array
foreach($POST['Activity'] as $row=>$Act)
{
$Activity=($Act);
$Position=($POST['Position'][$row]);
$StartDate=($POST['StartDate'][$row]);
$EndDate=($POST['EndDate'][$row]);
if ($row=="")
{$row=="NULL";}
$involv = "INSERT INTO Involvement (Activity, Position, StartDate, EndDate)
VALUES ('$Activity','$Position','$StartDate','$EndDate')";
Thanks in advance