"Gloria Macapagal Arroyo failed to explain the dramatic increase in her net worth from P67 million in 2001 to P144 million in 2008." Read more
Thursday, September 3, 2009
Monday, August 31, 2009
Fedor vs Lesnar is just a dream
I am really wondering how Fedor will going to perform if he will going fight inside the cage with Lesnar. BUT, this bout will only be a dream for UFC fans. Find out why in this link.. Brock vs Lesnar
Sunday, August 23, 2009
About Cebu
I have recently read the articles in this blog - Cebu: A Safe Place?. Please find time to read.
Thank you
Wednesday, March 18, 2009
How to connect to MySQL Database, SQL Query and Displaying Query Results using PHP scripts
After creating your database and tables in MySQL (PhpMyAdmin). You are now ready to connect to your database using the PHP script below.
////////////////////////////////////////////////
//
// We use the pre-defined function mysql_connect("server","username","password"),
//
// since we are developing our website in localhost (your own machine), by default, we use
// localhost as our server, root as our username and no password.
//
// Note: You can always create a new database user with password
// protection in PhpMyAdmin. Thus, making it
// mysql_connect("localhost","yourUsername","yourPassword")
//
// and you can use any names for your variables during the PHP scripting. Just a suggestion, // you should name your variables according to its use.
//
////////////////////////////////////////////////
$link = mysql_connect("server","username","password") or die("Cannot Connect to DB");
///////////////////////////////////////////////
//
// we declared and initialized a variable ($link) to hold the connection,
// after a successful MySQL connection, we are now going to select our database
// using mysql_select_db("yourDBName","yourMySQLConnection")
//
///////////////////////////////////////////////
mysql_select_db("yourDBName",$link);
///////////////////////////////////////////////
//
// after selecting your database, you are now ready to query.
// For SQL queries reference, click HERE.
//
///////////////////////////////////////////////
$sql = "SELECT * FROM yourTableName";
$result = mysql_query($sql);
while($show = mysql_fetch_array($result)){
echo $show['someFieldNameInYourTable'];
}
///////////////////////////////////////////////
//
// $sql holds the sql query string,
// $result holds the exact query using the function mysql_query("yourSQLQuery"),
// and mysql_fetch_array("resultOfYourSQLQuery") is responsible for getting the data from
// your query and displaying it using echo
//
///////////////////////////////////////////////
?>
There you have it. You can use this LINK for your PHP reference.
Labels: Web Programming
Thursday, February 12, 2009
x.x.x.x is not accessible...
You can try this, if ever you will going to experience such problem.
Labels: Troubleshooting
Sunday, February 8, 2009
Remove Viruses, Adwares, Spywares and Desktop Hi-jackers
Just follow this link to download,
http://www.precisesecurity.com/tools-resources/adware-tools/smitfraudfix/
It works for me! I would appreciated hearing your feedback after using this software.
Thanks!
Labels: Troubleshooting
Friday, January 23, 2009
An Art
I've received an email from one of my colleagues, I just want to share to you how a simple watermelon and an eggshell can be made into a masterpiece...
If you were amazed by the watermelons, wait till you see the eggshells...
"These egg shells were cut with a high intensity precision Laser Beam. This gives a very good idea of what can be achieved with a Laser Beam. This gives you an idea what laser surgery performed on one's eye is all about. Is it any wonder how one's vision can be improved in just a few moments? Science is sometimes wonderful, and it's still on the frontier of gaining new knowledge." - anonymous
Labels: Just a Thought
Friday, January 9, 2009
DONT QUIT!
When things go wrong, as they sometimes will,
When the road you're trudging seems all up hill,
When the funds are low and the debts are high,
And you want to smile, but you have to sigh,
When care is pressing you down a bit,
Rest if you must, but don't you quit.
Life is queer with its twists and turns,
As everyone of us sometimes learns,
And many a failure turns about
When he might have won had he stuck it out;
Don't give up, though the pace seems slow -
You might succeed with another blow.
Often the goal is nearer than
It seems to a faint and faltering man,
Often the struggler has given up
When he might have captured the victor's cup.
And he learned too late, when the night slipped down,
How close he was to the golden crown.
Success is failure turned inside out -
The silver tint of the clouds of doubt -
And you never can tell how close you are,
It may be near when it seems afar;
So stick to the fight when you're hardest hit -
It's when things seem worst that you mustn't quit.
A very inspiring message that I want to share with you all. ^_^
Labels: Just a Thought
Search
Categories
- Extra Income (1)
- Funny (2)
- Just a Thought (6)
- Outings (1)
- Programming (9)
- Santos (1)
- Thesis/Project Ideas (1)
- Troubleshooting (4)
- Ultimate Fighting Championship (3)
- Web Programming (7)
Featured Video
