2007年2月26日月曜日

操作性チェックリスト

1)ホームでサイトの内容をあきらかに
2)ユーザーがわかりやすいカテゴリに
3)ユーザーの目的達成を考えた構成
4)各ページの内容を独立させる
5)各ページからホームに戻れるようにする
6)ページを削除、移動しない
7)検索窓を配置
8)検索結果から情報をさがしやくする
9)重要な情報はページの上部に
10)ページのスクロール領域に気おつける
11)オンラインで読みやすい文章にする
12)ユーザーがサイズを変更できる
13)文字を画像化しない
14)クリックできる部分を明確に
15)リンクをわかりやすく:履歴
16)HTMLファイル以外は告知する
17)ユーザーの入力操作は最小限に

size of page is 760 wide is max

there are no stander size
msot small display has : 640+480

but nowday smallest displya at least has 760 on wide ,

Now 2007 ,if you make page most secure ,set page within 760 of wide

2007年2月20日火曜日

画像

画像->jpeg
音楽->3gq o mp3
画像は横94×縦100ピクセル程度であれば、かなりカバーする

文字コード

SJIS

2007年2月6日火曜日

return

to print out "return code" from test data ,use "nl2br();"

%

% is special charactor to express "SOMETHING".

1)'%a' => any records that ended 'a' .
2)'a%' -> any records that started 'a'.
3)'%a%' -> any records that included 'a'.

2007年2月5日月曜日

select

$sql="query strings";
$result=mysql_query($sql);
$row=mysql_num_rows($result);

if($rows==0){
die;
}
else{
while($row=myswl_fetch_array($result)){
$a1=$row["field name1"];
$a2=$row["field name2"];
}

insert data



PHP¤Î¥Æ¥¹¥È


$con=mysql_connect ("localhost", "id", "ps") or die ('I cannot connect to the database because: ' . mysql_error());
print ("connection is seccuess");

mysql_select_db('worloka3_test');
$last_name = addslashes($_POST['last_name']);
$first_name = addslashes($_POST['first_name']);
$age = addslashes($_POST['age']);

$sql = << INSERT INTO member
(
last_name,
first_name,
age
)
VALUES
(
'$last_name',
'$first_name',
$age
)
EOS;

print "

".$sql;
$result = mysql_query($sql);

print "
".$result;

mysql_close($con);
?>


charactor code

windows -> SHIFT JIS
PHP -> EUC-JP

connect to sql by php

$con=mysql_connect ("localhost", "your id", "your ps") or die ('I cannot connect to the database because: ' . mysql_error());
print ("connection is seccuess");
mysql_close($con);
?>

2007年2月2日金曜日

URL

for "move_uploaded_file" or other function ,it need to tell URL like this,

$file_dir = '/home/worloka3/public_html/test/image/';

ex :
$file_dir = '/home/worloka3/public_html/test/image/';
$file_path = $file_dir . $_FILES["uploadfile"]["name"];

move_uploaded_file($_FILES["uploadfile"]["tmp_name"], $file_path)
$img_dir = "/test/image/";
$img_path = $img_dir. $_FILES["uploadfile"]["name"];
$size = getimagesize($file_path);