473,508 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

drop down is not generating using this code

1 New Member
Expand|Select|Wrap|Line Numbers
  1. $select_query=          "Select name from category";
  2. $select_query_run =     mysql_query($select_query);
  3.  
  4. echo "<select>";
  5. while   ($select_query_array=   mysql_fetch_array($select_query_run) )
  6. {
  7.         echo "<option value='' >".$select_query_array['name']."</option>";                        
  8. }
  9. echo "</select>";
May 26 '14 #1
1 1231
Dormilich
8,658 Recognized Expert Moderator Expert
1) can you get results from the query at all?

2) what does the HTML source code say.
May 27 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1493
by: SirPoonga | last post by:
Lets say I have a couple of tables in a database containg car make, type, and model. I want to create a drop down box that is populated by the makes. Based on that selection run a query to get...
6
141762
by: nishtr | last post by:
Can any one told me that how can i format the drop down list using CSS
2
23224
by: subhashk | last post by:
Is it possible to create editable drop down list using ASP.NET?
1
1938
by: subhashk | last post by:
Is it possible to create a editable HTML drop down list using javascript?
3
7330
by: penny111 | last post by:
Hi there, For my application, i need to have 3 drop down lists 1. drop down list of folder names 2. drop down list of documents in the folder selected 3. drop down list of instances of the...
12
2786
by: azegurb | last post by:
I have table in Javascript and it has addrow, deleterow, submit, and functions. when i click it automatically adds new row and it has select option to choose some of them for ex. in added two rows...
4
6464
by: George Best | last post by:
Hi everyone, I am trying to make three dynamic drop down lists. When I say dynamic I mean when I choose a value from the first one, the second one changes options and when I choose a value from...
3
3574
by: IndyNS | last post by:
Here is what I am trying to do. I am using a JS button to create a new row in a table. In the new row I have two text boxes and a drop down list. I am wanting to set the background color of each of...
7
3648
by: rigaconnect | last post by:
I have drop down menu. If visitor selects certain option from drop down menu I need to show certain content (without page reload; so I need to use Ajax). At the same time I need save selection of...
0
7231
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7132
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7336
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7401
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7063
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5640
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4720
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
432
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.