<!-- html form to upload your image -->
<form method="post" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
<input type="file" name="uploaded_image" id="uploaded_image" />
</form>
//example PHP code to receive and save picture from d above form:
$fileName = $_FILES['uploaded_image']['name'];
$tmpName = $_FILES['uploaded_image']['tmp_name'];
$pixDir = "./the_folder_you_will_be_saving_pictures_to/";
// get the file extension first
$ext = substr(strrchr($fileName, "."), 1);
// and now we have to specify the path and filename to save as
$filePath = $pixDir . $_POST["member_id"] . '.' . $ext; //member id is your unique identifier for each member
//move the file to the new folder //move the file to the new folder
$result = move_uploaded_file($tmpName, $filePath);
if(!$result) die("could not save picture");
//set the path to the file in you database so you can use it to fetch the pix later
$query = "UPDATE memberTable SET image_path = '".$filePath ."' WHERE member_id = ".$_POST["member_id"];
$result = mysql_query($query);
if(!$result) die("could not save picture");
The codes above were modified for you from Alumnia opensource portal available at
http://www.afrisoft.org for free. it was taken from the edit.php file in the alumnia root directory. you can download Alumnia free to see the entire picture upload/display code.