Home  >  Q&A  >  body text

Why can’t I save the image path Public/imsages/logo.jpg?

Table<input type="text" onchange="updateSort('config','id','{$shop_configid['shop_info_store_logo']}','value',this)" value="{$shop_config ['shop_info_store_logo']}" class="form-control" />

Save code

if($data['act'] == 'edit'){

$r = D('config')->where('id='.$data['id'])->save($data);

}

Just save other characters, such as Chinese, letters, with/or. But not

学容错学容错2157 days ago869

reply all(2)I'll reply

  • 胤彬-

    胤彬-2018-10-31 15:52:16

    slashes are escaped

    reply
    0
  • 然

    2018-10-30 18:13:07

    Check the field types of your table

    reply
    0
  • 学容错

    There should be no problem with the fields. These contents can be stored directly in the database.

    学容错 · 2018-10-30 18:23:26
  • Cancelreply