https://www.icyphoenix.com/viewtopic.php?f=35&t=5713
-----------------------------------
AndyGpy
Sun 12 Apr, 2009 19:16
PHPBB Templates Listbox Help
-----------------------------------
Hi all,
Can someone please do an example of the following, i need to parse information pulled from a mysql database in a .php file to a html file which would populate a listbox
I have something like
$template->assign_block_vars('alerts', array( 'POS' => $i ,
'REGION' => $row['region'],
'SPECIES' => str_replace("%", "'",$row['species']),
'DATE' => $row['Date'],
'TIME' => $row['time'],
'COMMENTS' => str_replace("'", "%",$row['comments']),
[color=#ff000c] 'REGION_FILTER' => ,[/color]
but it is obviously wrong and i dont know how to parse into a list box can some help me please
regards
-----------------------------------
Mighty Gorgon
Sat 18 Apr, 2009 12:32
Re: PHPBB Templates Listbox Help
-----------------------------------
You should use a cycle at template level...
[codeblock][/codeblock]
And you have also specified the vars in the wrong way...
[codeblock]'REGION_FILTER' => '', [/codeblock]