Hi tumblr! It’s been a long time since my last post. Haha, I just remember one of my old friends. :)

"HTML+CSS+JavaScript+Jquery+AJAX+MYSQL+PHP in one module is equal to Headache."
"I love changes! parang IT Project, tsk"
pleatedjeans:

inverse logic. via

pleatedjeans:

inverse logic. via

thedailyfeed:

Your exclusive first look at Microsoft Office for iPad!

A brief hands-on with a working prototype of the software revealed a number of new things. The app’s user interface is similar to the current OneNote app, but it has hints of Metro, the new design language that can be seen in Windows Phone and in the as-yet-released Windows 8 desktop operating system.
 Word, Excel and PowerPoint files can be created and edited locally and online. But it’s unclear if Microsoft will support other Office apps at launch or at all.

thedailyfeed:

Your exclusive first look at Microsoft Office for iPad!

A brief hands-on with a working prototype of the software revealed a number of new things. The app’s user interface is similar to the current OneNote app, but it has hints of Metro, the new design language that can be seen in Windows Phone and in the as-yet-released Windows 8 desktop operating system.

 Word, Excel and PowerPoint files can be created and edited locally and online. But it’s unclear if Microsoft will support other Office apps at launch or at all.

(via thedailyfeed)

m0shcore:

perfect logic

Nice logic

m0shcore:

perfect logic

Nice logic

My PHP Database Connection

It’s a good practice to create one class only for database connection. This way you can easily exchange this file to reflect settings for your local development site, a test site and the customer’s production environment.

Please see code below:

<?php

class DbConnect{

//Connect to database

public function DbConnect(){

define(“DB_PATH”, “localhost”);

define(“DB_USER”, “root”);

define(“DB_PASS”, “root”);

define(“DB_NAME”, “my_db”);

mysql_connect(DB_PATH, DB_USER, DB_PASS)or die(“Cannot Connect Server”); 

mysql_select_db(DB_NAME)or die(“Cannot Select Database”);

}

//Select statement

public function select($query){

$query = mysql_query($query);

$query_row_count = mysql_num_rows($query);

$query_field_count = mysql_num_fields($query);

if($query_field_count != 0){

if($query_row_count != 0){

$result_arr;

for($row=0; $row<$query_row_count; $row++){

$result = mysql_fetch_assoc($query);

for($col=0; $col<$query_field_count; $col++){

$col_name = mysql_field_name($query, $col);

$result_arr[$row][$col_name] = $result[$col_name];

}

}

return $result_arr;

}else{

return false;

}

}else{

echo ‘<div class=”error”>Database error: Select query failed.</div>’;

return false;

}

}

//Delete statement

public function delete($query){

mysql_query($query);

if(mysql_affected_rows() == -1){

echo ‘<div class=”error”>Database error: Delete query failed.</div>’;

}

}

//Update statement

public function update($query){

mysql_query($query);

if(mysql_affected_rows() == -1){

echo ‘<div class=”error”>Database error: Update query failed.</div>’;

}

}

//Insert statement

public function insert(){

mysql_query($query);

if(mysql_affected_rows() == -1){

echo ‘<div class=”error”>Database error: Insert query failed.</div>’;

}

}

}

?>

thegandiman:

How to Tell HTML from HTML5 

thegandiman:

How to Tell HTML from HTML5 

cnet:


The Wall Street Journal reports that Google used special code to  sidestep the privacy settings in the browser and track Web users. Google  says the Journal’s got it wrong.

Article

cnet:

The Wall Street Journal reports that Google used special code to sidestep the privacy settings in the browser and track Web users. Google says the Journal’s got it wrong.

"I want to create any type of application for Windows, using C# programming language."