blue-genie Posted October 11, 2012 Share Posted October 11, 2012 I'm trying to extend some code generator code. in my add function i'm adding a url in my database, and then doing a file (thumbnail) upload to that location. now i have an edit page to allow the user to change the thumbnail. so i have code to display the previous file, then some code to locate a new file. but the file is not being updated, and the code that is actually going into the database is incorrect. i've attached 2 files. I've commented random bits out to try different things, if someone can point out what I've done wrong, I'll be very grateful. thanks. newsfeed_edit_func.phpFetching info... newsfeed_edit.phpFetching info... Quote Link to comment https://forums.phpfreaks.com/topic/269346-uploading-of-images-failing-on-edit-page/ Share on other sites More sharing options...
premiso Posted October 11, 2012 Share Posted October 11, 2012 Ok so some general advice here, no one really wants to look through 1000's of lines of code, especially attached as files to locate your issue. More than likely, why no one has replied yet. A better way to go about this is post the relevant sections of the code, IE the file upload code and the database insertion code and then add to it when people request more specific information, such as your form code etc. I did take a glance at it, but a 23K file really just turns me off. I understand that you are not sure where it is failing and hence why you posted the whole thing. I also understand that it is semi poorly written, given that the whole thing is in one long function. If you can narrow it down and post the relevant code inline on this forum using the code tags, that would be awesome and would most likely yield you replies and help. Quote Link to comment https://forums.phpfreaks.com/topic/269346-uploading-of-images-failing-on-edit-page/#findComment-1384522 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.