How can mysql obtain the ID based on the input field data? ?
大印
大印 2020-03-23 20:19:46
0
2
972

I want to enter "Wang Lun" and "Lin Chong" when entering the data in Table 3, and then directly change it to the ID of Table 1 and Table 2 on the third side of Table 3. How to do this has troubled me for several days. Yes, please help

大印
大印

reply all (2)
昨日

Do not enter a name, just make a select, the value is id

    大印

    This is the table structure

    Table 1 uid uname

    1 Song Jiang

    2 Li Kui

    3 3 Lin Chong

    Table 2 tid tname

    1 Fight against Wang Lun

    2 Attack Zhujiazhuang

    3 Conquer Fangla

    Table 3 sid uid tid

    1 1 2

    2 1 3

    3 3 1

    4 3 2

    5 2 3

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!