I am having a problem w/ the following code:
$arguements=0;
$select_arguements = array ( "new" => "",
"date" => "",
"url" => "",
"helpful" => "",
"not_helpful" => "",
"id" => ""
);
if ( yes_no_new_checkbox == "yes")
{
$arguements++;
//ERROR is ON THIS LINE FOLLOWING I BELIEVE
$select_arguements[new] = comment_viewed = 'n' ;
}
Here is the error I get:
Parse error: parse error, expecting T_STRING' orT_VARIABLE' or `'$'' in /home/xxxxxxx.com/www/php/display_yes_no.php on
line 24
I basically create an associative array and initialize each element to blank. Then I try to insert a string into the element of the array, I have tried single quotes, double, and escaping characters.
Any help / ideas are appreciated,
mike