I'm currently facing a problem. I do not know how to upload image into mysql database. And then after that i will need to retrieve from the database and display it.
It's actually because i need to create an online catalogue that includes an add to cart button. But for the images to be displayed in the online catalogue, i cannot use hard coding. I want to be able to frequently update the online catalogue whenever i have a new product in an admin page.
I can only do it for text instead of image.
if (isset($_POST['submit'])){
$name = $_POST['name'];
$add = mysql_query("INSERT INTO maritime_products(name) VALUES('$name')") or die("gg2");
}
$showname = mysql_query("SELECT * FROM maritime_products");
while($anything = mysql_fetch_array($showname)){
echo $anything['name'];
}