Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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?

Reply With Quote
  #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.
Reply With Quote
  #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



Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:31 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.