|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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; |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > filename and folder for picture upload |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|