adding images and text to DB errors
Posted: Mon Jun 02, 2003 1:24 pm
I had a script that has been working for awhile until recently when we had to move all of our data to a new hard drive. Now I cannot seem to get the add product info and images to db script to work.
I had it set up to use global variables and they are turned on, but the data either resets the entire page and doesn't add to the db bringing you back to the same blank form, or it gives you an im age could not be added error.
I have chmodded the images directory, and checked over my script several times but with no luck. A friend suggested that it was possibly a configuration in apache or PHP itself that was causing the variables trouble, but I really do not know. If someone knows a better way to code this not using global variables that will work please tell me.
I also tried using $_POST but it also did not work.
http://www.pancorp.com/siteadmin/addProduct2.phps
that is the code
http://www.pancorp.com/siteadmin/addProduct2.php
that is the messed up page
Any help is appreciated!
I had it set up to use global variables and they are turned on, but the data either resets the entire page and doesn't add to the db bringing you back to the same blank form, or it gives you an im age could not be added error.
I have chmodded the images directory, and checked over my script several times but with no luck. A friend suggested that it was possibly a configuration in apache or PHP itself that was causing the variables trouble, but I really do not know. If someone knows a better way to code this not using global variables that will work please tell me.
I also tried using $_POST but it also did not work.
http://www.pancorp.com/siteadmin/addProduct2.phps
that is the code
http://www.pancorp.com/siteadmin/addProduct2.php
that is the messed up page
Any help is appreciated!