/    Sign up×
Community /Pin to ProfileBookmark

About the thread Uploading Images

i tried to use the multiple images uploader and it worked soo good
but please could u tell me how can i make it inserted into the DB
i tried to do so in the multiple.upload.processior.php but it didnt work
please help

[code=php]foreach($active_keys as $key)
{
@move_uploaded_file($_FILES[$fieldname][‘tmp_name’][$key], $uploadFilename[$key])
or error(‘receiving directory insuffiecient permission’, $uploadForm);
}

$query=mysql_query(“update gallery_thumb SET
foto ='”.{$file}.”‘ where gallery_thumb_id='”.$gallery_thumb_id.”‘”);
if(!$query){echo “wrong”.mysql_error();[/code]

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@TheRaveFeb 19.2008 — Surely if you're uploading you want to INSERT a new record into the database not UPDATE a current record :S

Read up on SQL then...

Try INSERT in your sql query.
×

Success!

Help @ausgezeichnete spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...