Current location: Hot Scripts Forums » General Community » Script Requests » Basic image upload and data to mysql


Basic image upload and data to mysql

Reply
  #1 (permalink)  
Old 11-05-03, 02:01 PM
mdhall's Avatar
mdhall mdhall is offline
Aspiring Coder
 
Join Date: Oct 2003
Posts: 510
Thanks: 1
Thanked 1 Time in 1 Post
Basic image upload and data to mysql

I need a basic php script that does the following...

1) From a form, uploads a users photo into a directory;
2) From the same form, adds a few items of info to a db table;
3) Creates a link in the db table to the photo.

No bells and whistles, like a fancy image gallery, just something basic that I can modify the form and layout. I can do the info insert to the db fine, but not sure how to combine the insert query and the file upload in one script.
Also, can a directory on a home pc with apache & php be chmodded? I assume I'll need that ffor the photo directory to test the photo upload.
Reply With Quote
  #2 (permalink)  
Old 11-05-03, 04:17 PM
Thomas_ Thomas_ is offline
Newbie Coder
 
Join Date: Oct 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by mdhall
Also, can a directory on a home pc with apache & php be chmodded? I assume I'll need that ffor the photo directory to test the photo upload.
If it's running on Windows, directories don't need to be and can't be "chmodded".
Reply With Quote
  #3 (permalink)  
Old 11-05-03, 04:26 PM
KoVa_0101 KoVa_0101 is offline
New Member
 
Join Date: Oct 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by mdhall
I need a basic php script that does the following...

1) From a form, uploads a users photo into a directory;
2) From the same form, adds a few items of info to a db table;
3) Creates a link in the db table to the photo.

No bells and whistles, like a fancy image gallery, just something basic that I can modify the form and layout. I can do the info insert to the db fine, but not sure how to combine the insert query and the file upload in one script.
Also, can a directory on a home pc with apache & php be chmodded? I assume I'll need that ffor the photo directory to test the photo upload.
I need something like this too. but asp
Reply With Quote
  #4 (permalink)  
Old 11-05-03, 05:00 PM
mdhall's Avatar
mdhall mdhall is offline
Aspiring Coder
 
Join Date: Oct 2003
Posts: 510
Thanks: 1
Thanked 1 Time in 1 Post
Im using Apache and PHP, and a few scripts I want to test tell me that certain folders need to be set to "777", but I wasnt sure I needed to do this with WinXP, or if I even could. Another question....I also test scripts that need a root directory set in a config file, however for a home pc I havent figured out just what to put. I've tried things like C:/program files/blahblahblah, apache/htdocs/blahblahblah, etc., with no luck. Any suggestions?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload file type and size limiter! Arctic ASP 1 08-02-03 07:06 PM


All times are GMT -5. The time now is 11:27 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.