hi i 've to store the images in folder and retrive them, so how can i ?
can anyone help me ?

What do you have so far?

commented: <?php //This is the directory where images will be saved $target = "images/"; $target = $target . basename( $_FILES['photo']['name']); //This gets all the other information from the form $name=$_POST['name']; $email=$_POST['email']; $ph +1

<?php
$target = "images/";
$target = $target . basename( $_FILES['photo']['name']);
$name=$_POST['name'];
$email=$_POST['email'];
$phone=$_POST['phone'];
$photo=($_FILES['photo']['name']);
mysql_connect("localhost", "root", "root") or die(mysql_error()) ;
mysql_select_db("pic") or die(mysql_error()) ;
mysql_query("INSERT INTO image (name,email,phone,photo) VALUES ('$name', '$email', '$phone', '$photo')") ;
if(move_uploaded_file($_FILES['photo']['tmp_name'], $target))
[
echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded, and your information has been added to the directory";
]
else [
echo "Sorry, there was a problem uploading your file.";
]
?>

storing the name of the image in database bt not moving the image into folder

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.