2014年7月31日

php之mySql

摘要: 首先select语句中要遵循WGOL规范顺序。W = where ; G = group by(归组/归类,查询不重复项); O = order by .... ase/dese; L = limit ;编写mySql的连接文件1 View Code在编写代码的过程中我发现传送到数据库的中文会变成乱... 阅读全文

posted @ 2014-07-31 17:30 Zachary_wiz 阅读(213) 评论(0) 推荐(0) 编辑

php文件操作

摘要: 文件计数器;将点击该网页的次数记录在文件中,类似C++;另外需要注意fgets方法,fgets(Handle,num)中num的意思是读取前num-1个字符,并不是num个字符。 1 '; 3 $stt = stat('.\test.html');//打印该文件的属性细节 4 pri... 阅读全文

posted @ 2014-07-31 11:51 Zachary_wiz 阅读(164) 评论(0) 推荐(0) 编辑

2014年7月29日

php细节1可变变量及一些细节

摘要: 可变变量的样例 1 $bar . "\n";12 echo $foo->$baz[1] . "\n";13 14 $start = 'b';15 $end = 'ar';16 echo $foo->{$start . $end} . "\n";17 18 $arr = 'arr';19 echo... 阅读全文

posted @ 2014-07-29 17:07 Zachary_wiz 阅读(108) 评论(0) 推荐(0) 编辑

2013年5月7日

Android & 去掉标题栏

摘要: AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.zachary01" android:versionCode="1" android:versionName="1.0" > <uses-sdk andro 阅读全文

posted @ 2013-05-07 20:44 Zachary_wiz 阅读(147) 评论(0) 推荐(0) 编辑

Android & 读取MP3文件的图片

摘要: MainActivity.javapackage com.example.zachary01;import java.io.FileDescriptor;import java.io.FileNotFoundException;import java.util.ArrayList;import android.app.Activity;import android.content.ContentUris;import android.content.Context;import android.content.res.Resources;import android.database.Curs 阅读全文

posted @ 2013-05-07 12:45 Zachary_wiz 阅读(738) 评论(0) 推荐(0) 编辑

2013年4月19日

Android&String.index()

摘要: MainActivity.java 1 package com.zachary.xmlresolve; 2 3 import java.io.BufferedReader; 4 import java.io.IOException; 5 import java.io.InputStreamReader; 6 import java.net.HttpURLConnection; 7 import java.net.MalformedURLException; 8 import java.net.URL; 9 10 import android.app.Activity; 1... 阅读全文

posted @ 2013-04-19 20:19 Zachary_wiz 阅读(181) 评论(0) 推荐(0) 编辑

Android&下载文件xml

摘要: MainActivity.java 1 package com.zachary.xmlresolve; 2 3 import java.io.BufferedReader; 4 import java.io.IOException; 5 import java.io.InputStreamReader; 6 import java.net.HttpURLConnection; 7 import java.net.MalformedURLException; 8 import java.net.URL; 9 10 import android.app.Activity;11 import an. 阅读全文

posted @ 2013-04-19 12:44 Zachary_wiz 阅读(173) 评论(0) 推荐(0) 编辑

2013年4月18日

Android&读取Sdcard中的歌曲,ListView操作

摘要: music.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout android:layout_width="fill_parent" 3 android:layout_height="wrap_content" 4 android:orientation="horizontal" 5 xmlns:android="http://schemas.android.com/apk/res/android& 阅读全文

posted @ 2013-04-18 21:07 Zachary_wiz 阅读(325) 评论(0) 推荐(0) 编辑

Android&多线程下载

摘要: FileDownloadThread.java 1 package com.zachary.mutildownloader; 2 3 import java.io.BufferedInputStream; 4 import java.io.File; 5 import java.io.IOException; 6 import java.io.RandomAccessFile; 7 import java.net.URL; 8 import java.net.URLConnection; 9 10 import android.util.Log;11 12 public class File. 阅读全文

posted @ 2013-04-18 21:03 Zachary_wiz 阅读(163) 评论(0) 推荐(0) 编辑

2013年4月17日

android 中 unable to start service 错误解决方法

摘要: 解决方法:1.检查AndroidManifest.xml配置文件中是否配置了service2.检查service 是否在application标签内3.如果你的service和启动的activity不在同一个包内,需要把service标签中的android:name配置成service类的完全名(全路径) 阅读全文

posted @ 2013-04-17 14:43 Zachary_wiz 阅读(878) 评论(0) 推荐(0) 编辑

导航