Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Image won't upload to database?! Reply To: Image won't upload to database?!

#242631
cscodismith
Participant

Yes thank you, last night I fixed my code and it works correctly now! Would you happen to know how I can make it so only images that are either 1920px wide and 1080px height OR 1280px wide and 720px height will be accepted? Any other images will provide an error. Not completely sure how to make an if statement that targets the width(s) and height(s) of the images. You can view the file I am talking about to get this at: https://github.com/lowheartrate/heartNetwork/blob/master/includes/uploadPost.php#L18-L25

Best regards,
Codi