Home  >  Q&A  >  body text

Use of Thinkphp save()

N$CY14UO986CWYZ~YF8N1I3.png2]94WHON[)6YORNMG7UZMZ0.png

There is obviously an id value but it is missing in the sql statement

小叮当小叮当2349 days ago1643

reply all(4)I'll reply

  • PHP中文网

    PHP中文网2018-06-07 15:11:22

    $data['aid']=I('get.aid');There is no AID in your data

    reply
    0
  • 小叮当

    There is no aid obtained by GET on the current page. You can only use hidden fields to pass parameters. Thank you.

    小叮当 · 2018-06-07 15:17:02
  • 无忌哥哥

    无忌哥哥2018-06-07 15:05:27

    The conditions in where are written incorrectly. The double quotes comment out the variable $aid.

    reply
    0
  • 小叮当

    Variables are enclosed in single quotes

    小叮当 · 2018-06-10 15:12:17
  • Cancelreply