วันพฤหัสบดีที่ 9 มกราคม พ.ศ. 2557

If else :}

if else 
<body>
<?php
$score=72;
if($score < 50){
echo 'grade 0';
}else if($score < 56){
echo 'grade 1';
}else if($score < 60){
echo 'grade 1.5';
}else if($score < 66){
echo 'grade 2';
}else if($score < 70){
echo 'grade 2.5';
}else if($score < 76){
echo 'grade 3';
}else if($score < 80){
echo 'grade 3.5';
}else{
echo 'grade 4';
}
?>
</body>
</html>

วันอาทิตย์ที่ 1 ธันวาคม พ.ศ. 2556

อธิบายคำสั่ง


<?php
$sql ="select * from student order by id asc ";$query=mysql_query($sql) or die(mysql_error());$num=mysql_num_rows($query);echo $num;?>


อธิบายดังต่อไปนี้
<?php
$sql ="select * from student order by id asc ";(ตัวแปร sql คือ เลือกทุกฟิลด์จากเทเบิล student เรียงโดย id จากน้อยไปมาก)$query=mysql_query($sql) or die(mysql_error());(ตัวแปร query คือ ฟังก์ชันที่ใช้ในการประมวล sql และตรวจสอบว่าถูกต้องหรือไม่)$num=mysql_num_rows($query);(ตัวแปร num คือ ประมวลผลโดยการนับจำนวน record ของ ตัวแปร query)echo $num;(แสดงผลตัวแปร num) ?>

วันพฤหัสบดีที่ 21 พฤศจิกายน พ.ศ. 2556

PHP

<body>
<?php
$score=89;
if($score<50){
echo 'grade 0';
}else if($score<56){
echo'grade 1';
}else if($score<60){
echo'grade 1.5';
}else if($score<66){
echo'grade 2';
}else if($score<70){
echo'grade 2.5';
}else if($score<76){
echo'grade 3';
}else if($score<80){
echo'grade 3.5';
}else{
echo'grade4';
}
?>
</body>
</html>

วันพฤหัสบดีที่ 12 กันยายน พ.ศ. 2556

รักเธอไปทุกวัน


เนื้อเพลง รักเธอไปทุกวัน

เหนื่อย แต่ต้องยอม ฉันพร้อมที่จะเดินต่อ
เชื่อว่าจะต้องมีคนที่รอ
เอาใจมาแลกหัวใจของฉันไป ไม่ทำร้ายกันอีก

เท่าที่ผ่านมาน้ำตา เสียไปให้สิ่งที่คล้ายกับความรัก
จากคนหนึ่งถึงอีกคน ผลลงเอยจบก็เหมือนกัน

คือฉันเจ็บ เลยเก็บใจไว้รอ
คนที่พอดีทุกอย่างเข้ากับฉัน
คนที่มีหัวใจเหมือนกัน คนนั้นเป็นเธอได้ไหม
หัวใจมันบอกยอมทุกสิ่ง ยอมทุกอย่างให้กับเธอ
แม้ปลายทางอาจจะได้เจอความผิดหวัง
แต่ถึงยังไงก็จะรักเธอไปอย่างนั้น

แต่ใจของเธอ รักใครบางคนอยู่
หรือว่ายังไม่มีคนที่ดูใจกัน
ตัวฉันยังไม่รู้เลย แต่ขอให้ไม่มีเถอะ

เพราะที่ผ่านมา น้ำตาเสียไปให้สิ่งที่คล้ายกับความรัก
จากคนหนึ่งถึงอีกคน ผลลงเอยจบก็เหมือนกัน

คือฉันเจ็บ เลยเก็บใจไว้รอ
คนที่พอดีทุกอย่างเข้ากับฉัน
คนที่มีหัวใจเหมือนกัน คนนั้นเป็นเธอได้ไหม
หัวใจมันบอกยอมทุกสิ่ง ยอมทุกอย่างให้กับเธอ
แม้ปลายทางอาจจะได้เจอความผิดหวัง
แต่ถึงยังไงก็จะรักเธอไปอย่างนั้น

เพราะที่ผ่านมา น้ำตาเสียไปให้สิ่งที่คล้ายกับความรัก
จากคนหนึ่งถึงอีกคน ผลลงเอยจบก็เหมือนกัน

คือฉันเจ็บ เลยเก็บใจไว้รอ
คนที่พอดีทุกอย่างเข้ากับฉัน
คนที่มีหัวใจเหมือนกัน คนนั้นเป็นเธอได้ไหม
หัวใจมันบอกยอมทุกสิ่ง ยอมทุกอย่างให้กับเธอ
แม้ปลายทางอาจจะได้เจอความผิดหวัง
แต่ถึงยังไงก็จะรักเธอไปทุกวัน

จะรักเธอไปทุกวัน
...อ้างอิง http://sz4m.com/t3704

Bullet - Hoolywood Undead


เนื้อเพลง Bullet

My legs are dangling off the edge,
The bottom of a bottle is my only friend,
I think I'll slit my wrists again and I'm gone, gone, gone,
My legs are dangling off the edge,
A stomach full of pills didn't work again,
I'll put a bullet in my head and I'm gone, gone, gone, gone.

Gone too far and yeah I'm gone again,
It's gone on too long, tell you how it ends,
I'm sitting on the edge with my 2 best friends,
Ones a bottle of pills, ones a bottle of gin,
I'm 20 stories up, yeah I'm up at the top,
I'll polish off this bottle, now it's pushing me off,
Asphalt to me has never looked so soft,
I bet my momma found my letter, now shes calling the cops,
I gotta take this opportunity before I miss it,
'Cause now I hear the sirens and they're off in the distance,
Believe me when I tell you that I've been persistent,
'Cause I'm more scarred, more scarred than my wrist is,
I've been trying too long, with too dull of a knife,
But tonight I made sure that I sharpened it twice,
I never bought a suit before in my life,
But when you go to meet god, you know you wanna look nice.

So if I survive, then I'll see you tomorrow, yeah I'll see you tomorrow.

My legs are dangling off the edge,
The bottom of a bottle is my only friend,
I think I'll slit my wrists again and I'm gone, gone, gone, gone,
My legs are dangling off the edge,
A stomach full of pills didn't work again,
I'll put a bullet in my head and I'm gone, gone, gone, gone.

We hit the sky, there goes the light, no more sun, why's it always night
When you can't sleep, well, you can't dream,
When you can't dream, well, whats life mean?
We feel a little pity, but don't empathize
The old are getting older, watch a young man die,
A Mother and a Son and someone you know, smile at each other and realize you don't,
You don't know what happened to that kid you raised,
What happened to the Father, who swore he'd stay?
I didn't know 'cause you didn't say,
Now Momma feels guilt, now Momma feels pain,
When you were young, you never thought you'd die,
Found that you could but too scared to try,
You looked in the mirror and you said goodbye,
Climb to the roof to see if you could fly.

So if I survive, then I'll see you tomorrow, yeah I'll see you tomorrow.

My legs are dangling off the edge,
The bottom of a bottle is my only friend,
I think I'll slit my wrists again and I'm gone, gone, gone, gone,
My legs are dangling off the edge,
A stomach full of pills didn't work again,
I'll put a bullet in my head and I'm gone, gone, gone, gone.

I wish that I could fly, way up in the sky,
Like a bird so high,
Oh I might just try,
I wish that I could fly, way up in the sky,
Like a bird so high,
Oh I might just try,
Oh I might just try.
...อ้างอิง http://sz4m.com/l143019

The Man Who Can't Be Moved .



เนื้อเพลง The Man Who Can't Be Moved

Going back to the corner where I first saw you,
Gonna camp in my sleeping bag I'm not gonna move,
Got some words on cardboard got your picture in my hand,
Saying if you see this girl can you tell her where I am,
Some try to hand me money they don't understand,
I'm not...broke I'm just a broken hearted man,
I know it makes no sense, but what else can I do,
How can I move on when I'm still in love with you...

Cos if one day you wake up and find that you're missing me,
And your heart starts to wonder where on this earth I can be,
Thinking maybe you'll come back here to the place that we'd meet,
And you'd see me waiting for you on the corner of the street.

So I'm not moving...
I'm not moving.

Policeman says son you can't stay here,
I said there's someone I'm waiting for if it's a day, a month, a year,
Gotta stand my ground even if it rains or snows,
If she changes her mind this is the first place she will go.

Cos if one day you wake up and find that you're missing me,
And your heart starts to wonder where on this earth I can be,
Thinking maybe you'll come back here to the place that we'd meet,
And you'd see me waiting for you on the corner of the street.

So I'm not moving...
I'm not moving.

I'm not moving...
I'm not moving.

People talk about the guy
Who's waiting on a girl...
Oohoohwoo
There are no holes in his shoes
But a big hole in his world...
Hmmmm

and maybe I'll get famous as man who can't be moved,
And maybe you won't mean to but you'll see me on the news,
And you'll come running to the corner...
Cos you'll know it's just for you

I'm the man who can't be moved
I'm the man who can't be moved...

Cos if one day you wake up and find that you're missing me,
And your heart starts to wonder where on this earth I can be,
Thinking maybe you'll come back here to the place that we'd meet,
And you'd see me waiting for you on the corner of the street.
[Repeat in background]

So I'm not moving...
I'm not moving.

I'm not moving...
I'm not moving.

Going back to the corner where I first saw you,
Gonna camp in my sleeping bag not I'm not gonna move.
...อ้างอิง http://sz4m.com/l85534

วันพฤหัสบดีที่ 5 กันยายน พ.ศ. 2556

เนื้อเพลง we can't stop

"We can't stop"

เนื้อเพลง 
It’s our party we can do what we want
It’s our party we can say what we want
It’s our party we can love who we want
We can kiss who we want
We can live how we want (2x)

Red cups and sweaty bodies everywhere
Hands in the air like we don’t care
Cause we came to have so much fun now
Got somebody here might get some now

If you’re not ready to go home
Can I get a hell no
Cause we gonna go all night
Till we see the sunlight alright

So la da da di we like to party
Dancing with Miley
Doing whatever we want
This is our house
This is our rules
And we can’t stop
And we won’t stop
Can’t you see it’s we who own the night
Can’t you see it we who bout’ that life
And we can’t stop
And we won’t stop
We run things, Things don’t run we
Don’t take nothing from nobody

It’s our party we can do what we want
It’s our party we can say what we want
It’s our party we can love who we want
We can kiss who we want
We can live how we want

To my homegirls here with the big butts
Shaking it like we at a strip club
Remember only God can judge us
Forget the haters cause somebody loves ya
And everyone in line in the bathroom
Trying to get a line in the bathroom
We all so turnt up here
Getting turnt up yea yea

So la da da di we like to party
Dancing with Miley
Doing whatever we want
This is our house
This is our rules
And we can’t stop
And we won’t stop
Can’t you see it’s we who own the night
Can’t you see it we who bout’ that life
And we can’t stop
And we won’t stop
We run things
Things don’t run we
Don’t take nothing from nobody

It’s our party we can do what we want
It’s our party we can say what we want
It’s our party we can love who we want
We can kiss who we want
We can live how we want

It’s our party we can do what we want to
It’s our house we can love who we want to
It’s our song we can sing if we want to
It’s my mouth I can say what I want to

And we can’t stop
And we won’t stop
Can’t you see it’s we who own the night
Can’t you see it we who bout’ that life
And we can’t stop
And we won’t stop
We run things
Things don’t run we
Don’t take nothing from nobody
Yea, Yea, Yea
Cr. AELITAX TRANSLATE