Php select value from database

Php select value from database

Posted: djatell On: 27.05.2017
php select value from database

I'm trying to create a drop down menu that will select a value that is stored in the database. I spent some time trying to find the best solution for this, and came up with a tiny little jQuery code. First of all you should be using PDO or mysqli instead of mysqlsince it's deprecated.

php - Populate select drop down from a database table - Stack Overflow

Let's assume you've fixed that. So now we have the value of our database inside our HTML code. We'll be doing it with jQuery:.

How to Select Data from MySQL Database Tables Using PHP - Tutorial Republic

You can it working here used a calendar example. By posting your answer, you agree to the privacy policy and terms of service.

Stack Overflow Questions Developer Jobs Documentation beta Tags Users. Sign up or log in to customize your list.

php select value from database

Tour Start here for a quick overview of php select value from database site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about 99 mt4 indicator for binary options alert Overflow the company Business Learn more about hiring developers or posting ads with us.

Log In Sign Up. Join the Stack Overflow Community. Stack Overflow is a community of 7.

Join them; it only takes a minute: Jenz 6, 6 21 VishalSharma the column of supplier: I think the problem lies in this line: Try this out require 'koneksi. Vishal Sharma 1, 1 6 We'll be doing it with jQuery: Felipe Rugai 21 3. Sign up or log in StackExchange.

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.

Stack Overflow works best with JavaScript enabled. MathOverflow Mathematics Cross Validated stats Theoretical Computer Science Physics Chemistry Biology Computer Science Philosophy more 3. Meta Stack Exchange Stack Apps Area 51 Stack Overflow Talent.

inserted by FC2 system