This topic is locked

Custom Scripting Question

10/20/2007 8:31:54 PM
PHPRunner General questions
powersitedesign author

I am in the process of developing a membership management solution for a client that is a chamber of commerce. With their current solution, which is a static HTML solution, they have a page that links out to category pages for their members, here is a link: http://www.heber-springs.com/content/members/members.htm"">http://www.heber-springs.com/content/members/members.htm. I have created a database driven solution using PHPR has allowed me to recreate the "category pages", for instance under their current solution all "attorneys" are found on this page: http://www.heber-springs.com/content/membe...s_attorneys.htm and under the new solution I created the attorneys can be found here: http://www.heber-springs.com/membership/Me...hField=category so this part is done. Here's where I need some suggestions from the community...
I have all of the members setup in categories, here is a list view of the categories page: http://www.heber-springs.com/membership/Me...gories_list.php. I tried to go in and add a custom script on this like this:
[codebox]global $data;

$value = "<a target=_blank href=\"http://www.heber-springs.com/membership/Members_Database_list.php?a=search&value=1&SearchFor= {$row.1category_value}&SearchOption=Contains&SearchField=category."\"> {$row.1category_value}</a>";

[/codebox]
to try to replicate their current directory page (http://www.heber-springs.com/content/members/members.htm) and I got this error message:
Parse error: parse error, unexpected T_DNUMBER, expecting '}' in /var/www/vhosts/heber-springs.com/httpdocs/membership/include/commonfunctions.php on line 372
I know that this has got something to do w/ the syntax I used most likely, but I am not for sure how it should be. Any suggestions?
The reason I am going this route to accomplish this is because I want to be able to compensate when the clients add / drop a category. Any help on this is greatly appreciated, as I mentioned I am sure that this is a syntax issue and is definitely something doable. I have tried to be as descriptive as possible but if you need any additional information please hit me back.

powersitedesign author 10/20/2007

Don't you hate it when you work on something for a few hours and finally post something to a support forum only to realize the solution a few minutes later?... This is what happened to me. IN case anyone was already looking into this or for future reference, what I did was go in and just setup a hyperlink on each Category to be:
http://www.heber-springs.com/membership/Me...&SearchFor= {$row.1category_value}&SearchOption=Contains&SearchField=category
and it works! Here is the page: http://www.heber-springs.com/membership/Me...gories_list.php