oops sorry, wrong document. This was the code I meant, and the question is, how does it know to link up to my database? In otherwords, If I have a mysql database located at http://www.shrubbase.com/cgi/ad?mysql, and I have a photo file to upload to it, do I need a field or table that will link to that photo?
I guess I’m still not sure how to set it up so I can upload said photo and then access it easily. I get parts of this Ok, but there are parts I’m missing.
if (($_FILES['file']['type'] == 'image/gif') &&
($_FILES['file']['size'] < 5000))
echo 'Return Code: ' . $_FILES['file']['error'] . '<br />';
echo 'Uploading ' . $_FILES['file']['name'] . ' (' .
$_FILES['file']['type'] . ', ' .
ceil($_FILES['file']['size'] / 1024) . ' Kb).<br />';
echo 'File is temporarily stored as ' . $_FILES['file']['tmp_name'];
echo 'Sorry, we only accept .gif images under 5Kb for upload.';