![]() |
Alexey admin 1/21/2008 |
Stephan, echo $rowsearch; |
M
|
mmponline author 1/21/2008 |
Alexey //********** Custom code ************
|
M
|
mmponline author 1/22/2008 |
Any help, please! |
J
|
Jane 1/22/2008 |
Stephan, ... $rows["href"]="adventures_list.php?a=search&value=1&SearchFor=".$LocationName."&SearchOption=Contains&SearchField=Location"; $rows["1Location_value"]=$data["Location"]." (".$data["CountOfLocation"].")"; $rowsearch="<a href=\"".$rows["href"]."\">".$rows["1Location_value"]."</a>"; echo $rowsearch; } |
M
|
mmponline author 1/22/2008 |
Now: Error description Undefined variable: LocationName |
J
|
Jane 1/23/2008 |
Stephan, |
M
|
mmponline author 1/23/2008 |
I used it as you supplied: $rows["href"]="adventures_list.php?a=search&value=1&SearchFor=".$LocationName."&SearchOption=Contains&SearchField=Location";
global $conn,$smarty;
|
J
|
Jane 1/23/2008 |
Stephan, global $conn,$smarty; $rowsearch=array(); $rstt = db_query("SELECT adventures.Location, Count(adventures.Location) AS CountOfLocation FROM adventures GROUP BY adventures.Location", $conn); $ind=0; while($data=db_fetch_array($rstt)) { $rows=array(); $LocationName = str_Replace(" ","+",$data["Location"]); $rows["href"]="adventures_list.php?a=search&value=1&SearchFor=".$LocationName."&SearchOption=Contains&SearchField=Location"; $rows["1Location_value"]=$data["Location"]." (".$data["CountOfLocation"].")"; $rowsearch="<a href=\"".$rows["href"]."\">".$rows["1Location_value"]."</a>"; echo $rowsearch; } |
M
|
mmponline author 1/23/2008 |
Thank you! Works perfctly. Will surely save this code somewhere. |