Closed webstersgr closed 8 years ago
I'll try to help you has soon as I can, please be patient. -Just have to do something from 5 - 9 :c I'm not really into the uploads problems, but I'll do my best. Also I need the form data, not only the list. (that's the list not the user editor)
A no problem, I found the error.......
The image shows POST http:/......
, and in the code you have the $_GET
function :D
look here id = $_GET['id'];
.
Every $_GET
should be $_POST
.
Hello again and thank you so much for your quick response!
I've tried to replace the $_GET
with $_POST
in the id = $_GET['id'];
but in this case it seems like the id isn't loaded (my firebug report shows this:
"NetworkError: 500 Internal Server Error - http://websters.gr/WiseCMS/admin/uploads.php?id="
.
While I'm trying to find out what's wrong, I tried to isolate somehow the problem and it seems that if I remove from uploads.php the lines of code for the storage in the database and from users.php the ?id=<?php echo $opened['id']; ?>
, then the upload is successfully completed.
So, as far as I can tell, the problem is in adding the file in the database's users table...
When I'm adding this code the whole thing fails and I don't even get the image in the uploads folder anymore!
I can post you any file you may need, I just skipped the form data to avoid a long post. Thanks again for your time!!
@creptor Thank you so so much for your time. I've found the error! It was a stupid typo. I've forgotten the $ before id = $_GET['id'];
I'm sorry for the trouble I've caused!
I'm closing the issue and thanks again!!!
daaaam, I was so close :c nice catch.
Hello there and congrats for this awesome tutorial (btw I'd like to donate some bucks as soon as complete the series). I have an issue with uploading and inserting the image in the database. I'm following your tutorial step by step and I'm working on a live server. I've went through this piece of code over and over and I can't find where I'm doing wrong, so I hope maybe you could help! This is what firebug shows me :![screen shot 2016-01-21 at 20 25 11](https://cloud.githubusercontent.com/assets/16573689/12490217/232fcd88-c07d-11e5-8419-d4924652a837.png)
I'm also pasting you the code from users.php & uploads.php ,hoping you can help me out! Thanks in advance!!!
uploads.php
users.php
(I'm leaving out the pieces of the code inside the form tags to save some space)