AARGH! PHP/mySQL help please...!
Discussion
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.
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.
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).
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff



