getting unexpected T_STRING error line 62 which is the send_query line. what did i forget now !
function commit()
{
global $link, $img_name, $img_caption;
// this function take the current time in seconds from Epoch(Jan 1, 1970 00:00:00)
$time_stamp=time();
move_files();
//insert new row into images
$insert_query="INSERET INTO images (image_name, caption, date_auto)
VALUES ('$img_name', '$img_caption'. '$img_caption', 'time_stamp')"
send_query($insert_query,$link);
}