Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
| Search | Today's Posts | Mark Forums Read
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 24th, 2007, 05:31 PM
Registered User
 
Join Date: Feb 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ho do we store pictures in a database?

Am using php and mysql and I want to store pictures in the database. How will i do it?

  #2 (permalink)  
Old February 25th, 2007, 06:18 AM
Authorized User
 
Join Date: Feb 2007
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,

storing picture in database will take lots of space.

So create a folder and store picture in that folder.

so while storing pictures in database store picture file name.
  #3 (permalink)  
Old March 18th, 2007, 12:05 PM
Friend of Wrox
 
Join Date: Jul 2003
Location: South San Francisco, CA, USA.
Posts: 128
Thanks: 0
Thanked 1 Time in 1 Post
Default

Vitalis,
What prashu mentioned was correct. To add to that
on your MySQL database you could add a field in your table
where your picture are described.
This field will be the url and the Image source
stored in your image folder.
Hope this helps.
John





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ho to write Macro??? keepsmiling_sruti Excel VBA 1 July 22nd, 2005 07:45 AM
Ho to do nested if statements scoobie PHP How-To 2 April 24th, 2005 06:22 AM
Store Pictures on SQL Database fmo_82 C# 1 February 17th, 2005 11:47 PM
how i use the Stored Procedure return value and ho yoord ADO.NET 5 June 28th, 2004 08:39 AM
Where could get the Music Store Database? cash Java Databases 2 February 21st, 2004 08:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.