whiskey lullaby

Sad song with beautiful voice from Alison Krauss and Brad Paisley. The video below is basically just lyrics floating. I did not like the “official” one, too much Hollywood, every one should have his/her own interpretation of why “She broke his heart”.

She put him out like the burnin’ end of a midnight cigarette
She broke his heart he spent his whole life tryin’ to forget
We watched him drink his pain away a little at a time
But he never could get drunk enough to get her off his mind
Until the night

1st Chorus
He put that bottle to his head and pulled the trigger
And finally drank away her memory
Life is short but this time it was bigger
Than the strength he had to get up off his knees
We found him with his face down in the pillow
With a note that said I’ll love her till I die
And when we buried him beneath the willow
The angels sang a whiskey lullaby

(Sing lullaby)

The rumors flew but nobody knew how much she blamed herself
For years and years she tried to hide the whiskey on her breath
She finally drank her pain away a little at a time
But she never could get drunk enough to get him off her mind
Until the night

2nd Chorus
She put that bottle to her head and pulled the trigger
And finally drank away his memory
Life is short but this time it was bigger
Than the strength she had to get up off her knees
We found her with her face down in the pillow
Clinging to his picture for dear life
We laid her next to him beneath the willow
While the angels sang a whiskey lullaby

PHP Tutorial -1

PHP & MySQL for Dummies

This is the book I am going to start with learning PHP. I am using MS SQL server at work, so MySQL part is not a problem. The basic PHP commands and functions will be listed along with my study progress.

Chapter 2: Connect to mysql

The provided mysql_up.php used mysqli_query function, which due to unknown reason does not work. MySQL revision at my website is 5.1.30 verified with mysql_get_server_info. But mysql_up-4.php works, it used mysql_query.

Check MySQL connection

<?php
/* Program: mysql_up.php
* Desc: Connects to MySQL Server and
* outputs settings.
*/
echo "<html>
<head><title>Test MySQL</title></head>
<body>";
$host="fdb2.host-ed.net";
$user="username";
$password="password";
$cxn = mysql_connect($host,$user,$password);
$sql="SHOW STATUS";
$result = mysql_query($sql);
if($result == false)
{
echo "<h4>Error: ".mysql_error($cxn)."</h4>";
}
else
{
/* Table that displays the results */
echo "<table border='1'>
<tr><th>Variable_name</th>
<th>Value</th></tr>";
for($i = 0; $i < mysql_num_rows($result); $i++)
{
echo "<tr>";
$row_array = mysql_fetch_row($result);
for($j = 0;$j < mysql_num_fields($result);$j++)
{
echo "<td>".$row_array[$j]."</td>n";
}
}
echo "</table>";
}?>
</body></html>

Check MySQL revision

<?php
$host="fdb2.host-ed.net";
$user="username";
$password="password";
$link = mysql_connect($host,$user,$password);if (!$link) {
die('Could not connect: ' . mysql_error());
}
printf("MySQL server version: %sn", mysql_get_server_info());
?>