What is the fastest and easiest way to get a specific value from a mysql database table and echo it as a php variable?
For example:
I have a table like so:
label value
------------------------
postpage About
name My Blog
I want to echo out the value column that has a label of postpage. In this case it would be the text “About”. How would I do this with as little code as possible using php and mysql?
Thanks!
This should help get you started. Keep in mind it is a very simple example, and there are other visual/security changes you would need to make in a real application: