NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page how to upload pictures in mysql?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 10-25-2007, 03:02 PM THREAD STARTER               #1 (permalink)
Account Closed
 
shahzad11's Avatar
Join Date: Nov 2006
Location: Lahore
Posts: 297
shahzad11 is on a distinguished road
 



how to upload pictures in mysql?


hi all please help me,

i wanna make a php script where people will upload there pictures and search afterwards

please tell me how to compile three funcions


1. image upload to mysql
2. auto thumbnail to mysql
3. search query "or" logic based


thanks in advance to all who help me
shahzad11 is offline  
Old 10-25-2007, 03:33 PM   #2 (permalink)
NamePros Expert
 
Peter's Avatar
Join Date: Nov 2003
Location: Scotland
Posts: 5,069
Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute
 


Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
have you actually tried making a start or are you hoping someone else will make the script for you.

If you truly wish to write such a script then look at the $_FILES array as well as GD functions in PHP (provided the server you are on is running GD) and lastly look at storing binary data in the database (although ideally you should have them on the file system instead of within a database, simply store the names in the database).

If it is a case of you wanting someone else to code it for you, you will be better posting in the 'Web Development Wanted' section.
__________________
Manage your portfolio using my new Domain Portfolio Management script.
Securing Your Domain Name From Theft
Peter is offline  
Old 10-27-2007, 02:16 AM THREAD STARTER               #3 (permalink)
Account Closed
 
shahzad11's Avatar
Join Date: Nov 2006
Location: Lahore
Posts: 297
shahzad11 is on a distinguished road
 



thanks brother i am starting it myself

thanks again
shahzad11 is offline  
Old 11-16-2007, 04:18 PM   #4 (permalink)
NamePros Regular
 
wikes82's Avatar
Join Date: Sep 2006
Location: K-R.NET
Posts: 902
wikes82 has much to be proud ofwikes82 has much to be proud ofwikes82 has much to be proud ofwikes82 has much to be proud ofwikes82 has much to be proud ofwikes82 has much to be proud ofwikes82 has much to be proud ofwikes82 has much to be proud ofwikes82 has much to be proud of
 


Save a Life Cancer
you can store binary using blob/longblob in Mysql, but very... very ... not recommended...

usually you just need to store the path to image, and save the image as file in the server...

hint: use $_FILES and move_uploaded_file ()
wikes82 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 06:26 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger