Pages

Thursday, July 21, 2011

音乐分享 Chris Medina - What Are Words


Sunday, May 15, 2011

Meeting you was fate, becoming your friend was a choice, but falling in love with you was beyond my control

Tuesday, June 29, 2010

enchance SQL security


In PHP if some variables are taken from query string and used inside one mysql query then the variables are to be sanitized ( checked ) first before using.

When we don't expect any thing other than a numeric value then why not to check the variable by using is_numeric PHP function and terminate the program if data is not a number. Here is a sample code for this.

$cat_id=$_GET['pc_id'];
if(!is_numeric($pc_id)){
echo "Data Error";
exit;
}

$start=$_GET['start'];
if(strlen($start) > 0 and !is_numeric($start)){
echo "Data Error";
exit;
}


If we expect only alphanumeric characters then we can use ctype_alnumfunction.

if(!ctype_alnum($var)){
echo "Data Error";
exit;
}


Wednesday, June 23, 2010

Connect MySQL

without using password

run cmd command
cd C:\Program Files\xampp\mysql
cd bin
mysql.exe -uroot mysql
use [databaseFolderName]


If you wan connect with password:-
change mysql -uroot mysql to mysql -u[accountName] -p[password]

Monday, June 21, 2010

一个人的个性是会被环境影响的

Friday, April 16, 2010

希望 by 沈祥龙

[ti:希望]
[ar:沈祥龙]
[al:希望]

[00:00.00]
[00:21.37]我一直以来都守护在你身边
[00:28.38]不知你如何看得见
[00:32.63]也只好静静靠在一边
[00:37.55]你的笑容能让我开心一整夜
[00:43.89]好想拥有你在我身边
[00:48.20]让尉暗世界变成晴天
[00:52.92]时间已经蹉跎
[00:56.90]我还有话很想说
[01:00.93]月亮埋藏心中
[01:03.78]却要如何开口
[01:08.52]该不该继续承诺
[01:12.41]该不该勇感直说
[01:16.72]
[01:17.74]希望你会懂
[01:21.71]
[01:23.58]不能在一起也没关系
[01:28.39]至少你懂我的心 会在想你
[01:34.41]那些回忆会永远保持甜蜜
[01:38.96]不管未来你会在哪里
[01:44.20]我都不会忘记 我爱你
[01:50.55]你是我微笑的原因
[01:55.78]
[02:09.75]我一直以来都守护在你身边
[02:16.77]不知你如何看得见
[02:20.94]也只好静静靠在一边
[02:25.83]你的笑容能让我开心一整夜
[02:32.07]好想拥有你在我身边
[02:36.30]让尉暗世界变成晴天
[02:41.41]时间已经蹉跎
[02:45.53]我还有话很想说
[02:49.13]月亮埋藏心中
[02:51.83]却要如何开口
[02:56.85]该不该继续承诺
[03:00.72]该不该勇感直说
[03:04.38]
[03:06.03]希望你会懂
[03:11.87]不能在一起也没关系
[03:16.88]至少你懂我的心 会在想你
[03:22.76]那些回忆会永远保持甜蜜
[03:27.22]不管未来你会在哪里
[03:32.57]我都不会忘记 我爱你
[03:38.87]你是我微笑的原因
[03:43.81]
[03:44.79]oh oh ohhh
[03:48.19]
[04:06.21]不能在一起也没关系
[04:10.91]至少你懂我的心 会在想你
[04:17.04]那些回忆会永远保持甜蜜
[04:21.53]不管未来你会在哪里
[04:26.91]我都不会忘记 我爱你
[04:32.96]你是我微笑的原因
[04:39.41]
[04:50.54]oh ohh
[04:53.76]end


Thursday, April 15, 2010

SUPPORT GREEN EARTH

天气太热了!!!

为什么最近的天气异常的热呢?

就连想要休息一会儿 也被热醒, 满头飚汗 @@

在facebook 就看到这个讯息:
NASA reports,by the next 10 MONTHS, EARTH gets hotter by 4'C from now. Himalayan glaciers are melting at a rapid rate. Lend your hands to fight global warming -Plant more trees. Don't waste water. Don't use or burn plastic [PLEASE COPY AND FORWARD IT] i love earth, dont u?

哇还要上升4度呢? 现在已经够热了了
虽然平时我都不怎么支持环保,现在看来也要响应一下
大家的合体力量至少可以帮忙这个地球

Let us SUPPORT GREEN EARTH~~~

 

site weekly hits