I wanna add an extra column to my database and give it the name price_23-05-2019.
How do I put this into a working query?
I have this right now, which is clearly not working:
$date = date("d-m-Y");
$query =
"ALTER TABLE `products_05_2019`
ADD price_'.$date.' DECIMAL(7,2)";
($result = mysqli_query($link, $query))
productswhich contains all the info about topics, except for the prices (That's what it looks like you are trying to do). Thisproductstable has a primary key, make another tablepriceswith the columnsproduct_key,price,date. Now for each date, add a new row to thepricestable that is linked to the primary key fromproducts, this way you can query the database and pull all the prices for a specific product.