PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 17th, 2005, 06:26 AM
toyicebear toyicebear is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 1 toyicebear User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
filename and folder for picture upload

Hi,

Newbee in need of some assistance regarding to uploading/adding a picture.

Currently the browse for picture works, an entry is added into the mysql.

Problem:

1. not only the filename but the whole local picture path are added into the mysql.

2. The picture is not added to the "Image" folder.

Could someone help me modify the code snippet under to accomplish the following.

1. picture added to the "image" folder

2. only pictures filename added to the mysql

Code:

case "AddSure":
function add_information ($data) {
global $languages_id;
$query ="INSERT INTO " . TABLE_INFORMATION4 . " VALUES(null, '$data[visible]', '$data[v_order]', '$data[info_title]', '$data[info_image]', '$data[description]','$languages_id')";
mysql_db_query(DB_DATABASE, $query) or die ("Information ERROR: ".mysql_error());
}
if ($v_order && $info_title && $description) {
if ((INT)$v_order) {
add_information($HTTP_POST_VARS);
$data=browse_information();
$title="" . tep_image(DIR_WS_ICONS . 'confirm_red.gif', CONFIRM_INFORMATION) .SUCCED_INFORMATION . ADD_QUEUE_INFORMATION . " $v_order ";
include('information_list4.php');
} else {$error="20";}
} else {$error="80";}

break;

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > filename and folder for picture upload


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT