joeysarsenal Posted September 26, 2007 Share Posted September 26, 2007 Just wondering if it can be done and mabye a example of how ? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/70752-solved-inserting-images-into-a-mysql-database-table/ Share on other sites More sharing options...
fenway Posted September 26, 2007 Share Posted September 26, 2007 It can be done, but it's preferable to simply include a relative path if at all possible. Quote Link to comment https://forums.phpfreaks.com/topic/70752-solved-inserting-images-into-a-mysql-database-table/#findComment-355679 Share on other sites More sharing options...
RichardRotterdam Posted September 26, 2007 Share Posted September 26, 2007 agreed with fenway you can use blob type to store files in the database but storing just the URL of the image is faster and less troublesome when you want to display a gallery or something like that Quote Link to comment https://forums.phpfreaks.com/topic/70752-solved-inserting-images-into-a-mysql-database-table/#findComment-355777 Share on other sites More sharing options...
joeysarsenal Posted September 28, 2007 Author Share Posted September 28, 2007 i dont understand what you guys mean like create a database for the images or just link them? cause i want to add a coloum for images into my database so ill have Name Type Description Image Soap soap cleaning (image) if that makes any sence. Quote Link to comment https://forums.phpfreaks.com/topic/70752-solved-inserting-images-into-a-mysql-database-table/#findComment-356955 Share on other sites More sharing options...
fenway Posted September 28, 2007 Share Posted September 28, 2007 No, put the images someone on the file system, then store a path to where it is. Quote Link to comment https://forums.phpfreaks.com/topic/70752-solved-inserting-images-into-a-mysql-database-table/#findComment-357220 Share on other sites More sharing options...
joeysarsenal Posted September 29, 2007 Author Share Posted September 29, 2007 the the input to that field will be like c:\image.jpeg Quote Link to comment https://forums.phpfreaks.com/topic/70752-solved-inserting-images-into-a-mysql-database-table/#findComment-357665 Share on other sites More sharing options...
teng84 Posted September 29, 2007 Share Posted September 29, 2007 yes and no only the name of the images eg..teng.jpeg if you will store them in same dir Quote Link to comment https://forums.phpfreaks.com/topic/70752-solved-inserting-images-into-a-mysql-database-table/#findComment-357667 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.