![]() |
dynamic dropdown not work
heres the function im using
when i load the page the drop down doesnt show anything. so im wondering if there is a syntax error u can find because my ide isnt finding any. this is how im typing the html out <select><?php dyn_dropdown(tbl_status,status); ?></select> Code:
function dyn_dropdown($tablename,$columnname) {here is the table structure tbl_status Code:
CREATE TABLE `tbl_status` (Code:
id status |
After the while block, add in:
PHP Code:
|
Quote:
here is my function now Code:
function dyn_dropdown($tablename,$columnname) { |
PHP Code:
This conditional probably doesn't work as you expect: PHP Code:
I'm also curious as to why you're not using the `id` column as the OPTION tag value, e.g. PHP Code:
|
| All times are GMT. The time now is 08:27 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0