Skip to content
Advertisement

php pdo how to pull down and set default values from the database

JavaScript
JavaScript

I would like to ask how I can use the foreach to select the value brought out of the database to the default value. For example: my database value is 15 * 90, how to select option =15 * 90 I use PDO here

Advertisement

Answer

You need to create a loop to process all the results from the query and add the relevant parts of each row to the HTML

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement