Hi first post here.
This is my first real experience with PHP and MySQL. I have the following code which allows me to put information from a form into my database.
However I'm having trouble importing one thing. Here is my code.

if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
echo "Thankyou, You have just added $_POST[item] to the database";

I want it to post the file name of the image but also with the "../upload/uploads/"on the beginning of it.
All other items enter fine into the database but i get this error
http://img407.imageshack.us/my.php?image=print.jpg
does anyone have any ideas?
Thanks all

Fumigator

02-24-2009, 12:43 AM

Can you attach the file showing the error? I am blocked from getting to imageshack. Or just copy/paste the text of the error.

Old Pedant

02-24-2009, 12:44 AM

Not a PHP person, at all, but just looking at the pattern you have there I would say you are simply missing the surrounding apostrophes: