markdown tpshop mysql.md

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown tpshop mysql.md相关的知识,希望对你有一定的参考价值。

# 相册处理

比如有这些 URL

```
/public/upload/goods/2017/08-15/1628/main/1.jpg
/public/upload/goods/2017/08-15/1628/main/2.jpg
/public/upload/goods/2017/08-15/1628/main/3.jpg
/public/upload/goods/2017/08-15/1628/main/4.jpg
/public/upload/goods/2017/08-15/1628/main/5.jpg
/public/upload/goods/2017/08-15/1628/main/6.jpg
```

倒入数据库

```
INSERT INTO `tpshop_2`.`tp_goods_images` (`img_id`, `goods_id`, `image_url`, `is_trash`) VALUES (NULL, '1628', '/public/upload/goods/2017/08-15/1/main/1.jpg', '0');
INSERT INTO `tpshop_2`.`tp_goods_images` (`img_id`, `goods_id`, `image_url`, `is_trash`) VALUES (NULL, '1628', '/public/upload/goods/2017/08-15/1/main/2.jpg', '0');
INSERT INTO `tpshop_2`.`tp_goods_images` (`img_id`, `goods_id`, `image_url`, `is_trash`) VALUES (NULL, '1628', '/public/upload/goods/2017/08-15/1/main/3.jpg', '0');
INSERT INTO `tpshop_2`.`tp_goods_images` (`img_id`, `goods_id`, `image_url`, `is_trash`) VALUES (NULL, '1628', '/public/upload/goods/2017/08-15/1/main/4.jpg', '0');
INSERT INTO `tpshop_2`.`tp_goods_images` (`img_id`, `goods_id`, `image_url`, `is_trash`) VALUES (NULL, '1628', '/public/upload/goods/2017/08-15/1/main/5.jpg', '0');
INSERT INTO `tpshop_2`.`tp_goods_images` (`img_id`, `goods_id`, `image_url`, `is_trash`) VALUES (NULL, '1628', '/public/upload/goods/2017/08-15/1/main/6.jpg', '0');
```

以上是关于markdown tpshop mysql.md的主要内容,如果未能解决你的问题,请参考以下文章

markdown WP-CLI-Launch-PHP-built-in-web-server-and-Start-MySQL-server.md

tpshop多商户教程,及tpshop小程序代码解析

简单介绍TPshop商城使用,TPshop商城使用的安装--windows环境

TPshop -- Admin后台起步(权限管理)

TPshop各个目录模块介绍

phptpshop怎么用?