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!
adding images and text to DB errors
Moderator: General Moderators
-
fariquzeli
- Forum Contributor
- Posts: 144
- Joined: Mon Jun 24, 2002 9:16 am
- Location: Chicago
- Contact:
-
fariquzeli
- Forum Contributor
- Posts: 144
- Joined: Mon Jun 24, 2002 9:16 am
- Location: Chicago
- Contact:
tried changing a few things around:
http://www.pancorp.com/siteadmin/addProduct.php <--page
http://www.pancorp.com/siteadmin/addProduct.phps <--code
I now have error reporting turned on all the way and the errors I get are:
Warning: Undefined index: picture in /home/ttoomey/pancorp.com/siteadmin/addProduct.php on line 35
Warning: Undefined index: picture in /home/ttoomey/pancorp.com/siteadmin/addProduct.php on line 35
Warning: Unable to open '' for reading: No such file or directory in /home/ttoomey/pancorp.com/siteadmin/addProduct.php on line 35
tis broken
please post if you have any suggestions or ideas on how to do this.
http://www.pancorp.com/siteadmin/addProduct.php <--page
http://www.pancorp.com/siteadmin/addProduct.phps <--code
I now have error reporting turned on all the way and the errors I get are:
Warning: Undefined index: picture in /home/ttoomey/pancorp.com/siteadmin/addProduct.php on line 35
Warning: Undefined index: picture in /home/ttoomey/pancorp.com/siteadmin/addProduct.php on line 35
Warning: Unable to open '' for reading: No such file or directory in /home/ttoomey/pancorp.com/siteadmin/addProduct.php on line 35
tis broken
please post if you have any suggestions or ideas on how to do this.