I have tried and also found some server side coding for this. I don't know what to write in client side. I want to store the image on image view to remote database.
<?php
$host="localhost"; // Host name
$username="root"; // Mysql username
$password=""; // Mysql password
$db_name="q"; // Database name
\
// Connect to server and select databse.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
// username and password sent from form $myusername=$_GET['ID'];
//$mypassword=$_GET['email'];
$target1="Login/".$_FILES['sr']['name'];
move_uploaded_file($_FILES['sr']['tmp_name'], $target1);
//$passport=$target1;
$fe=$_FILES['sr']['name'];
$qu="INSERT INTO q(q)VALUES('$fe')";
$res=mysql_query($qu);
if($qu) {
echo "success";
}
else {
echo "mahender".mysql_error();
}
?>