php - Upload Image into SQL database and then retrieve it from the database and display it -


i'm facing problem. not know how upload image mysql database. , after need retrieve database , display it.

it's because need create online catalogue includes add cart button. images displayed in online catalogue, cannot use hard coding. want able update online catalogue whenever have new product in admin page.

i can text instead of image.

if (isset($_post['submit'])){     $name = $_post['name'];     $add = mysql_query("insert maritime_products(name) values('$name')") or die("gg2");      }  $showname = mysql_query("select * maritime_products"); while($anything = mysql_fetch_array($showname)){     echo $anything['name']; } 

you do not need store images in database. please, store path image in database , store image on file system. thank you!


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -