while(list($key,$value) = each($_FILES['images']['name']))
{
$imagename=$_FILES['images']['name'][$key];
$update_pdt=mysql_query("update listings set img.$key='$imagename' where rid=2");
}
Hi good day everyone, I have a question. I need to upload the names of the uploaded files into mysql. The sql field is img0, img1, img2, img3, img4, img5. The above code I think is perfectly all right to me but I don't know why it is not working. Can anyone help?