Javascript:Combobox creation taking data from DB On button click
hi...
i am working on PHP with PostgreSQL as DB..OS is LINUX Both r very New to me... how to show options in a combobox by takein data from database + same combobox along with the data in it should get created every time a button is clicked Expecting REply....:) |
What you need to do is:
But take it in small steps, checking that at each stage it is working correctly. graeme. |
Are you wanting to make a drop down box that lists all data in a column in a certin table? If so, do something like this (it is an example that uses MySQL).
Code:
$database = "db"; |
Just a couple of comments to the code tangle provided.
The <br> is not necessary, although a \n would made the generated html easier to read. The select tag should be closed, after while, giving... Code:
if(mysql_num_rows($result)) |
hi...
thanks 4 the reply... i am also doing the same thing... but when i am clicking a button to create another select box its not containing the same data.... already i hav select box with the options from DB in the table... its like drop down list i hav used javascript for the button name "MORE"... The code is as follows :- Quote:
Quote:
|
Javascript Combobox
|
All times are GMT -5. The time now is 07:52 AM. |