ok, ive got 2 question, first is the upload script i tried to modify it to be able to upload say word docs as well so i changed:
[code=php]
@getimagesize($_FILES[$fieldname][‘tmp_name’])
or error(‘only image uploads are allowed’, $uploadForm);
to
[code=php]
if($_FILES[$fieldname][‘tmp_name’] == “application/msword” || $_FILES[$fieldname][‘tmp_name’] == “image/jpeg”){
// rest of upload script
}else{
error(“Incorrect file type. Only MS word documents and jpeg’s can be uploaded”);
}
?>
and when i tried to upload a jpeg it gave me this nice little message:
[quote]
Fatal error: Call to undefined function: error() in C:Program FilesxampphtdocsFile Upload Sitemember-upload.process.php on line 127
which happens to be this line:
[code=php]error(“Incorrect file type. Only MS word documents and jpeg’s can be uploaded”);
any suggestions on what i can do to make it work, also its originally bokeh’s script so i can post the full thing, but only a few things have changed, a few sql statements and it worked fine before i tried to change it to verifying the two types.
now my second question is im calling an array from a databse that has like 3 different fields, username, createdate, email, access. im tryin to count how many rows are in the array. but i cant seem to do it. ive tried “sizeof” and “count”. is there a special way i need to call it out of the database or something?
any help on either question would rock, ill also keep fiddling with it.