473,499 Members | 1,568 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to create an auto update drop downlist in php

9 New Member
hi,

i am facing a problem while practicing php.

i am working a demo hr management system ....if a new record is added to database then the drop down list to
show employee id will be updated immediately with that id
how to create a dynamic dropdown list for this

thanx in advance
Sep 30 '10 #1
2 1670
dlite922
1,584 Recognized Expert Top Contributor
Well, first you pull the data from the database. Then loop through it and create the <option> tag fro the <select> field.

Of course the page needs to be refreshed for this to happen since the web is stateless (there's no live connection to the server)

If you don't know how to connect to a database and pull data, I suggest you find some tutorial and teach yourself.

Best way to practice PHP is to ....practice coding PHP, right?


Dan
Sep 30 '10 #2
oranoos3000
107 New Member
hi
your meaning from this question is not clear
but if your meaning is as below
but add new user or update information an user options in the select element is changed it's correct think because php is server side only and you cant identify this item
Sep 30 '10 #3

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

Similar topics

0
3722
by: Jerry Brenner | last post by:
Our users have potentially dirty legacy data that they need to get into our application. We provide a set of staging tables, which map to our source tables, that the users do their ETL into. ...
2
1496
by: Tom Gao | last post by:
hi guys I'm wondering how do I pass a key-value pair to a drop downlist ? since I can not use hashtable as there is nor order.. and I can not use sortedlist as the order which I supply to the...
1
3029
by: news.microsoft.com | last post by:
Hello When we build a setup project. As long as we use the same setup.msi, it will give you the option of repair & remove. However, if I send them an update, it tells you have an instance...
7
1662
by: Markus McGee | last post by:
Hi all, I have a quick question...I believe. On my web page, call it page A, I have a drop downlist with runat server enabled. When the drop downlist change event occurs it repopulates a...
17
9946
by: Dino M. Buljubasic | last post by:
I am building an applicatin that will be able to automatically update itself from an FTP server. I'd like to be able to determine which version of application is newer, the one currently running...
3
6738
by: Eric Renken | last post by:
Does anyone know of a good auto update service. Using .NET 2.0 C#. I do not want to use InstallShields, even though that is who we use to create setups. There sales policies are starting to...
1
3079
by: ainsley | last post by:
Hi this is going to sound like a very basic question, but I am creating a database in Access which is based on a number of unlimited tables. In my data entry form i have a number of combo boxes...
0
1124
by: Agnes | last post by:
I try the auto-update program from IIS - http://sourceforge.net/projects/appupdater It works find in window2003 However, when I do the same procedure and setup in window 2000 IIS 5.0 it is fail...
0
1072
by: Agnes | last post by:
my server is WINDOW 2003 , When i process auto update , there is an error" "Application Update Failed" The auto-update of this application failed with the following error message: Download of a...
2
2983
by: myquestion | last post by:
how to hide/show a text box using drop downlist in php
0
7132
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
7178
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
7223
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
6899
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
7390
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
3103
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3094
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
302
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.