`
minmai
  • 浏览: 28475 次
社区版块
存档分类
最新评论
文章列表
update books set bookname=concat('《',bookname,'》');
现在将这个表导出为文本文件:c:\data_out.txt。 复制代码 代码如下: select name,age,city,salary into outfile “c:/data_out.txt” lines terminated by “\r\n” from person;

html button

    博客分类:
  • html
http://www.w3schools.com/tags/tag_button.asp Inside a <button> element you can put content, like text or images. This is the difference between this element and buttons created with the <input> element. Tip: Always specify the type attribute for a <button> element. Different browse ...

php 获取client真实ip

    博客分类:
  • php
<?php /** * 获取用户真实 IP * * @Author: 小熊 * @Return: string */ function getIP() {     static $realip;     if (isset($_SERVER)){         if (isset($_SERVER["HTTP_X_FORWARDED_FOR"])){             $realip = $_SERVER["HTTP_X_FORWARDED_FOR"];         } else if (isset($_SERVER[" ...
一、CSS 居中 — 水平居中 DIV等标签本身没有定义自己居中的属性,网上很多的方法都是介绍用上级的text-align: center,然后嵌套一层DIV来解决问题。 可是这个方法有时候完全不起作用,而且对于布局是非常不科学的方法。正确的的设置写法如下(对页面构造没有影响): div {margin-left: auto; margin-right: auto; } 这句CSS居中的意思就是让div自己调整左右margin间隔的距离以达到水平居中的效果。 有时候我们还可以简写为 div { margin:0px auto; } 但这样的简写法,如果你调整 margin-top 或者 mar ...
js setimeout
1.PHP获得前一个页面的URL地址 <?php       echo $_SERVER['HTTP_REFERER'];   ?> 2.PHP获得当前页面的URL地址 <?php         echo  $url = $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];   ?>
解决方案: 升级到xdebug
The road for me as a long time dot net programmer to switch ‘code’ to PHP was undoubtedly a very bumpy one. Some of the things we took for granted in ASP.Net development can turn out to be struggles for other languages. I was using Eclipse PDT with xDebug as the debugger(I have never been successful ...
编辑器Ultraedit快捷键 说到编辑器的快捷键,VIM是无与伦比的。要反对,也得是带脚踏板的EmaCS。UE还是有差距的,很大差距。注意:VIM是开源、免费的,而UE则需要注册。UE是Windows下最好的编辑器——如果没有GVIM和Emacs的话。而VIM ...
<div>没有onload方法  直接把js放在其后,就会加载后执行,如果不想整个document ready后再执行
开发过程中,最好明确使用何种字符集 使用:set names 'x' 来明确 A SET NAMES 'x' statement is equivalent to these three statements: SET character_set_client = x; SET character_set_results = x; SET character_set_connection = x; 这样对于数据库端设置的依赖性将大大降低。 root@xxx>show variables like '%char%'; +--------------------------+----- ...
Ansi,UTF8,Unicode,ASCII编码的区别 近日需要不同的编码,关于上述编码,一直迷迷糊糊,查了些资料,总算大致了解了, 下面全是从网上搜来的: 1.   ASCII和Ansi编码 字符内码(charcter code)指的是用来代表字符的内码.读者在输入和存储文档时都要使用内码,内码分为 单字节内码 -- Single-Byte character sets (SBCS),可以支持256个字符编码. 双字节内码 -- Double-Byte character sets)(DBCS),可以支持65000个字符编码. 前者即为ASCII编码,后者对应ANSI. 至于简体中文编码 ...
经过多次查询,终于找到了解决方法,在Linux下解决MySQL中的中文数据在终端和网页上显示乱码问题: 在mysql_connect后面加一句SETNAMES UTF8,即可使得UTF8的数据库消除乱码,对于GBK的数据库则使用SETNAMES GBK, 代码如下: [php] view plaincopyprint? $mysql_mylink= mysql_connect($mysql_host, $mysql_user,$mysql_pass);  mysql_query("SET NAMES 'GBK'");  数据库字符集为utf-8 连接语句用这个 [s ...
Global site tag (gtag.js) - Google Analytics