日志(9)
该TAG下暂无资讯
-
mysql和php中的substr函数不一样
cfaq 发表于 2007-06-12 14:40:39mysql中的substr函数中如要从第一个字符开始截取,则第一个参数应该为1;php中的substr函数中如要从第一个字符开始截取,则第一个参数应该为0; 看代码: $target_link=mysql_connect($dbhost,$dbuser,$dbpass) or die ...
-
zuolo的数据导入和gb2312-utf8编码转换实例(mysql和php)
cfaq 发表于 2007-06-09 17:13:35<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta htt...
-
数据导入的问题:SupeSite5.5中的supe_spaceitems信息表的hash字段的值是怎么生成的?
cfaq 发表于 2007-06-09 16:19:52我观察oblog4xsql-xspace3x.zip中的oblog4xsql-xspace3x.php代码为:$hash = substr(md5($itemid), 8, 16);借鉴并使用PHP脚本导...
-
mysql无法连接
cfaq 发表于 2007-05-20 21:58:34为了启用GD库而重新配置了php5,配置信息为:./configure --prefix=/opt/php5 --with-apxs2=/opt/apache2.2/bin/apxs --with-zlib --with-config-file-path=/opt/apache2.2/modules --enable-track-vars --with-xml --en...
-
在SQL Manager 2005 for MySQl查看ecs_goods时,中文显示为乱码
cfaq 发表于 2007-05-20 21:57:47在SQL Editor中输入下列代码后,可以显示正常中文。set names gb2312;select * from `ecs_goods`;
-
连接uft-8编码的mysql数据库后得到数据乱码
cfaq 发表于 2007-05-20 21:54:08需要在mysql_select_db语句后新加一行代码"mysql_query("set names utf8;");"
-
对linux上的mysql数据库进行优化
cfaq 发表于 2007-05-20 21:47:09在mysql安装目录的support-files文件夹中# cp my-medium.cnf /etc/my.cnf # 覆盖原文件# vi /etc/my.cnf # 修改:在块[mysqld]中把key_buffer 128M;把table_cache 改为256;并新增加两行设...
-
发现php的mysql函数特点
cfaq 发表于 2007-05-20 21:35:19比如读取行记录函数:mysql_fetch_array()每使用一次数组内的指针就下移一位,循环使用时到最后会返回false值。
-
mysql语句错误mysql_fetch_array():
cfaq 发表于 2007-05-20 21:28:46出现警告:Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource 解决方法:php语句字符串除了以;结尾,mysql语句字符串也要以;结尾,这样就是 $mysql="select * from abc ;"; 发现有时my...
该TAG下暂无图片
该TAG下暂无商品
该TAG下暂无软件
该TAG下暂无书签
该TAG下暂无影音

