Ravi_53 0 Newbie Poster

I have One Problem in my coding ..I want to upload multiple images in the database in one row with using comma ...
for($i=0;$i<count($_FILES['eventpic']['name']);$i++)

$pic = $_FILES['eventpic']['name'][$i];
$tmp =$_FILES['eventpic']['tmp_name'][$i];
$location="pics/".$pic;
move_uploaded_file($tmp,$location);
$q="insert into tbl1(title,tdate,eventpic)values('','','$pic')";
echo $q;
through this code i can upload tthe multiple images but not in a single row ....

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.