![]() |
database output and <select> box?
Trying to put my database output in a <select></select> box. Any ideas how to do it in the template?
I can have the var in php in either an array or in a single variable with all the data in it. |
With the data in an array you should be able to use the vb:each tag, like the example at the end of this article: https://vborg.vbsupport.ru/showthread.php?t=221560 (you can also search your templates for vb:each and find other examples).
|
Code:
$chan = mysql_query("SELECT * FROM channels ORDER BY chan ASC", $connection); |
I haven't actually used vb:each before, but I think you'd want this:
Code:
<td><select name="cGID" size="1"> Of course as an alternative, you could do this: Code:
$menu = '<select name="cGID" size="1">'; |
Code:
$chan = mysql_query("SELECT * FROM channels ORDER BY chan ASC", $connection); |
All times are GMT. The time now is 09:21 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|