Looking for help with extracting product names from a database table called Product_table
. The table consists of three columns: product_name
, product_info
, and product_cost
.
I want to execute the SQL query
'SELECT product_name FROM product_table'
in JavaScript, and store all product names in an array. Any assistance on how to implement this would be highly valued.