[PHP] Checking file type when uploading

2010-09-17 Thread Catherine Madsen
Hi! I have created a form following the PHP manual to upload files and need to restrict the upload to only PDF. How do I check the file type ($_FILES['userfile']['type']?) and where: on the form page or on the validation page? I want to be able to tell the users that their file doesn't have the

Re: [PHP] can't retrieve more than 1 record at the time still

2009-12-15 Thread Catherine Madsen
Thank you so much for sending me in the right direction. I've re-written the first part of the script using PDO statements and it works great. Catherine Richard Quadling wrote: 2009/12/14 Catherine Madsen cmad...@berkeley.edu: Hi Again, Following the suggestions I received from

[PHP] can't retrieve more than 1 record at the time

2009-12-09 Thread Catherine Madsen
clearing stack if(isset($_SESSION['DOCIDs'])) unset($_SESSION['DOCIDs'] );*/ $res = null; $dbh1 = null; ? -- Catherine Madsen Programmer Analyst College of Chemistry Berkeley, CA 94720-1460 TEL: 510-643-1706 FAX: 510-643-6178 -- PHP General Mailing List (http://www.php.net