Modify the same field in the database form
Nigellus
Nigellus 2018-07-21 13:20:18
0
2
1059

For example

upload/vod/20180721/

upload/vod/20180720/

upload/vod/20180719/

...

are changed to

images/vod/20180721/

images/vod/20180720/

images/vod/20180719/

How to change it?


Nigellus
Nigellus

reply all(2)
不愿将就

First use the explode function to adapt the string into an array, and then take the first subscript and change it, or use the substitution method. str_replace, check how to use it

若你能遇见他、

update table name set field name ='modified value'

  • reply But the crux of the problem is that I just want to change the previous upload to images, but I don’t want to change the latter part.
    Nigellus author 2018-07-21 17:03:05
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template