我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

使用php排序规则在sql中保存图像

I am trying to save some png images in my database, but from the error i get

near 'æÓ' at line 1

i assume it's a collation problem. The collation is set to utf8_general_ci. What collation should i use for images?

If you really have to use images in an SQL database you should use BLOB field not TEXT.

The best practice is to store only the paths to the images, not the images themselves.

近期文章

  • 滚动时,Twitter Bootstrap Modal窗口不会保持在屏幕中心
  • Facebook javascript + php,如何保证数据的有效性?
  • Paypal IPN - Post var
  • Apache服务器禁止在上层目录中打开php文件
  • XSLT或PHP超链接删除元素
  • 我需要使用什么:TDD中的聚合或组合?
  • 如何在codeigniter中使用cookie保存临时数据?
  • 找不到phpsh
  • Netbeans PHP包含路径似乎未使用,无论是Project还是Global
  • 当我在geochart中仅使用一个参数Country时,如何更改区域的默认颜色(#267114)
  • 从两个表中获取最高总和值
  • WOO主题缺少博客页面[关闭]
  • Magento - 将根类别链接添加到菜单
  • PHP将序列化数组从表单传递到同一页面
  • 如何使用PHP last.fm API的缓存功能
  • 如果在验证联系表单时发生任何错误,则应出现警告消息框
  • 仅在输入框不为空时验证输入
  • 使用curl检查仅限美国的网站状态
  • Zipstream - PHP在输出标头之前获取查询字符串
  • 循环遍历stdClass中嵌入的数组

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华