getting parse error. Parse error: parse error, expecting `')'' in C:\xampp\htdocs...
can't see any missing brackets. Only changed this line:
$items[] = l($term->name, "personnel-search", array('fragment' => type=$term->tid)) . " ($count)";
----- Original Message ----- From: "Earnie Boyd" earnie@users.sourceforge.net To: support@drupal.org Sent: Thursday, April 22, 2010 11:08 AM Subject: Re: [support] slight problem with encoding
Neil Coghlan wrote:
Thanks for the idea, unfortunately exactly the same problem. The issue is with the ? and = symbols.
Yea well, I knew that wouldn't work.
Looking at http://api.drupal.org/api/function/l/6 we see that we should write
$items[] = l($term->name, "personnel-search?type=$term->tid")
as
$items[] = l($term->name, "personnel-search", array('fragment' => type=$term->tid))
The above is untested and you might need 'query' instead of 'fragment'.
-- Earnie -- http://progw.com
-- http://www.for-my-kids.com
[ Drupal support list | http://lists.drupal.org/ ]