Hi frnds...
here i am uploading images....i am getting error when i use songle quotes in title(otherwise correct)......plz check this one..
$gcategory=$_POST['gcategory'];
[B]$gname=mysql_real_escape_string($_POST['gname']);[/B]
[B]$tmp_name = mysql_real_escape_string($_FILES["gphoto"]["tmp_name"]);[/B]
$name = mysql_real_escape_string($_FILES["gphoto"]["name"]);
$tname = mysql_real_escape_string($_FILES["tphoto"]["name"]);
$ttmp_name = $_FILES["tphoto"]["tmp_name"];
$date=date('y-m-d');
$dir="../../gallery/allgallerys/$gcategory/$gname";
$tdir="../../gallery/allgallerys/$gcategory/$gname/thumb";
if(!file_exists($dir))
mkdir($dir)or die("Filename all ready exits");
if(!file_exists($tdir))
mkdir($tdir)or die("Filename all ready exits");
plz modify this code...