answersLogoWhite

0


Best Answer

I am assuming you already have a mysql connection function/string in place

Now select the database

mysql_select_db("db_name"); // Put the name of your database in place of db_name

// Add the column you want data from in place of ID

// Add the name of your table in place of table_name

$query = mysql_query("SELECT ID FROM table_name");

// This gets a bit complicated but it helps with debugging

?>

If you want value of another combobox by selecting a combobox then use of AJAX is helpful

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you populate values of combobox using server side scripting as php?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write function integerpower that return the value of base exponent?

write a scripting to return values in functions


Why is a combo box different from a list box?

A combobox holds a single value, the user selects that value by clicking on an arrow on the side of the box (Right by default) and chooses from a drop down list of values, which closes again when a value is selected. A listbox allows the user to select multiple values (Or a single value if specified) from a constantly displayed list of values. In the new Windows Presentation Foundation (WPF) a listview can be configured to contain controls and images and is often used to display data to the user in a completely customised fashion (Such as a twitter feed with images); A combobox would not be suitable for this purpose.


Why do you need different scripting for client and server side?

Partly because the available scripting languages are different: JavaScript runs primarily in the browser, which server side languages like PHP, JSP, Ruby on Rails etc. cannot do.Partly because the tasks are different: The server may do things like database lookup, reading/writing files and user authentication that would be either impossible or very insecure to do in a browser.That said, there are a number of tasks that can be done either on the client or the server, like generating the HTML for the page.There are also a couple of tasks that are commonly done both places, like form validation - on the client to give quick feedback and on the server to ensure that what is submitted is actually safe and valid. (An attacker could easily skip any browser validation and submit illegal values.)If you wish to share as much code between client and server as you can, server side JavaScript exists, so it is possible to use the same language both places. There will still be different scripting, as there are tasks that can only be done on the server.See related link for some server side JavaScript options.


How to Normalization in arcgis?

In ArcGIS, normalization is typically achieved by using the Field Calculator to calculate normalized values based on a chosen formula or method. You can create a new field and populate it with normalized values by dividing the original values by a chosen factor (e.g., the sum of all values in the field) to scale the values between 0 and 1.


What network utilization values would most likely indicate that there is a problem with the server?

75%


How do you prevent cross-site scripting?

Two methods to prevent cross site scripting that come to mind. One is to encode and decode the input field values of your HTML form. This will change the special characters of the code a hacker tries to place into your form fields to do cross site scripting. The other is to be sure and validate the input types of your form fields so that only valid data types are accepted. Hope this helps.


How can you access FarmVille with ihaxgamez?

You can't. You don't have access to the server where the game parameter values are stored.


How do you get old and new values using trigger in sql server?

create trigger purchase on products for update as when(new.QuantInHand<new.ReorderQty) insert into purchaser values(new.productid,new.ReorderQty) ; go


How do you check the data given by the user with database values using PHP from MySQL database?

You could use the string replace attribute but you might have to use Javascript, CGI, ASP or another scripting language to do so.


What is server side testing?

Server side testing means when you will click on submit button, that time request will go server side and response will be getting from server. i.e for web application testing, if add any form values and click on submit button, the request will be given to server i.e the back end function will be done, so that value will be added to the db by means of query given.


Do Server options take precedence over scope options if they conflict?

Scope options override server options, so in any conflicts between option settings such as DNS servers, the scope option values take precedence.


How do you use cheat engine 6.0 on Movie Star Planet?

You can use it just as you would use it for a non server sided game (online game) to change values but here's the problem. Where as most flash games on sites work with CE since they are static (The file is downloaded to your temp folder to play for the amount of time you're on) CE can change it's values in a way that effects the game. The problem with an online game is that it's server sided meaning all values and info is kept on the game's server which isn't accessible by CE. Your only hope is to hack their servers but...doubt it's worth it.