/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Upload Images

I’m using mysql and php to create a website. I want to upload an image to a folder on my server and rename that image to the records ID field and convert to jpg. Any suggestions on where to find this info? I have found tutorials on uploading and even renaming, but nothing on setting the new name to the ID of the record I’m currently viewing (the id number shows in the url). I don’t want to save the images in the db itself…

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@rangersedgeauthorMar 10.2015 — The tutorials I've found have me run another page. This takes me away from my submitted form. I would like to stay on that form after submitting.

It's a basic "Edit" form that lets you view a single record and edit it at a time. I'm trying to get an upload image function on this page so the user can upload the image for the record, naming it the same as the ID field so that it displays on the page, and then stay on the page but refresh...

any help?
×

Success!

Help @rangersedge 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 6.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...