格式错误的url php mysql
我上传4件东西到我的网站上。对于文件类型3和文件类型4,我使用dd_文件夹;然而,当我试着称之为它时,我得到了这样的东西 url/dd_文件夹/dd_文件夹/文件名 这只发生在文件类型4上;这是我认为应该负责的代码格式错误的url php mysql,php,sql,malformed,Php,Sql,Malformed,我上传4件东西到我的网站上。对于文件类型3和文件类型4,我使用dd_文件夹;然而,当我试着称之为它时,我得到了这样的东西 url/dd_文件夹/dd_文件夹/文件名 这只发生在文件类型4上;这是我认为应该负责的代码 else if (!empty($variables_array['item_file_url_' . $file_type])) { $file_name = $variables_array['item_file_url_' . $file_typ
else if (!empty($variables_array['item_file_url_' . $file_type]))
{
$file_name = $variables_array['item_file_url_' . $file_type];
$embedded_code = ($this->setts['enable_embedded_media'] && $file_type == 2) ? $variables_array['embedded_code'] : 0;
if ($create_row)
{
$this->upload_create_row($upload_item_id, $file_type, $file_name, $embedded_code);
}
}
if ($file_type == 1) /* image */
{
$nb_uploads = $this->count_contents($variables_array['ad_image']);
$variables_array['ad_image'][$nb_uploads] = $file_name;
}
else if ($file_type == 2) /* video */
{
$nb_uploads = $this->count_contents($variables_array['ad_video']);
$variables_array['ad_video'][$nb_uploads] = $file_name;
}
else if ($file_type == 3) /* digital media */
{
$nb_uploads = $this->count_contents($variables_array['ad_dd']);
$variables_array['ad_dd'][$nb_uploads] = str_replace($this->setts['dd_folder'], '', $file_name);
}
else if ($file_type == 4) /* 4.18.2012 torrent support */
{
$nb_uploads = $this->count_contents($variables_array['ad_torrent']);
$variables_array['ad_torrent'][$nb_uploads] = str_replace($this->setts['dd_folder'], '', $file_name);
}
我认为正在发生的是,在其他3个不同的文件上传过程中,第一个dd_文件夹位被删除。然而,当我尝试使用文件类型4时,出于某种原因,它保留了它。在这个问题上有人能帮忙吗