AARGH! PHP/mySQL help please...!
AARGH! PHP/mySQL help please...!
Author
Discussion

UncleDave

Original Poster:

7,155 posts

261 months

Monday 29th May 2006
quotequote all
Right... ever since I deleted entries from the table in mySQL, people are unable to upload anything here:

http://ph.uncle-dave.co.uk/upload/ind
and here..
http://ph.uncle-dave.co.uk/gtl/upload

Both the pages above are based around the same table.

The images are only displayed on the page if they actually exist on the server.. so that's how I can run different sets of files on each page.

The TestImage001.jpg that is uploaded on page one was uploaded after the problem.. but I had to do it manually - Insert a new row into mySQL database with the necessary info, then I manually uploaded a TestImage001.jpg file through FTP.
So! It seems something has gone wrong somewhere meaning that instead of uploading the file, creating a row in mySQL, then diverting to another page showing the URL of the uploaded file.. the page just seems to refresh and it does nothing!

I hope that is understandable
I just can't understand what has gone wrong. It is still reading from mySQL, and i've never modified the index.php page at all..
And why deleting rows would do this I have NO idea

Thanks,
Dave.

chriswright

354 posts

252 months

Monday 29th May 2006
quotequote all
Has the index file been changed somehow? Thats the only thing that I can think of.

timsta

2,779 posts

276 months

Monday 29th May 2006
quotequote all
I may be wrong, but your form doesn't do anything.

Have a look at the action for your form:

HTML Source said:

<form method="post" enctype="multipart/form-data" action="">



Other than that, check your upload directory has teh correct permissions.

UncleDave

Original Poster:

7,155 posts

261 months

Monday 29th May 2006
quotequote all
Nah form submission is working OK, and yeah CHMOD is OK just double checked..
And nope, I never touched the index.php

timsta

2,779 posts

276 months

Monday 29th May 2006
quotequote all
Dave YHM

timsta

2,779 posts

276 months

Monday 29th May 2006
quotequote all
Dave, YH more M

UncleDave

Original Poster:

7,155 posts

261 months

Tuesday 30th May 2006
quotequote all


I owe you many beers..

polus

4,343 posts

255 months

Tuesday 30th May 2006
quotequote all
timsta said:
I may be wrong, but your form doesn't do anything.

Have a look at the action for your form:

HTML Source said:

<form method="post" enctype="multipart/form-data" action="">



Other than that, check your upload directory has teh correct permissions.


If nothing is specified in the action field it will default to the current page (in ie and ff).

timsta

2,779 posts

276 months

Tuesday 30th May 2006
quotequote all
True, as I found out last night. Of course, I wouldn't ever trust it, but I'm daft! I always cover my bases.