Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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']),
                    'REGION_FILTER' =>     <option>$row['region']</option> ,


but it is obviously wrong and i dont know how to parse into a list box can some help me please

regards
 



 
AndyGpySend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: PHPBB Templates Listbox Help 
 
You should use a cycle at template level...

Code: [Download] [Hide] [Select]
<select name"region">
<!-- BEGIN alerts -->
{alerts.REGION_FILTER}
<!-- END alerts -->
</select>


And you have also specified the vars in the wrong way...

Code: [Download] [Hide] [Select]
'REGION_FILTER' => '<option>' . $row['region'] . '</option>',

 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron