php - how to store an image and a text in a database in mysql -


i want to store recipes in database, format of recipes should small photo on top , text below. explain me how structure should be?

thanks in advance

i avoid storing actual bytes of image in database, that's bad idea (see storing images in db - yea or nay?). instead, create simple text field stores perhaps markdown version of recipe page. page include image tag pointing image or recipe instructions.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -