Some Inspirational Thoughts From Some Genious Persons
Hello Friends !!
Today i will show you some Inspirational Thoughts From Some Genious Persons of world.
When your mind have negative thinking, then please revise these thoughts in your mind :
“Man often becomes what he believes himself to be. If I keep on saying to myself that I cannot do a certain thing, it is possible that I may end by really becoming incapable of doing it. On the contrary, if I have the belief that I can do it, I shall surely acquire the capacity to do it even if I may not have it at the beginning.â€
- Mahatma Gandhi
“You can never cross the ocean unless you have the courage to lose sight of the shore.â€
- Christopher Columbus
“To a brave man, good and bad luck are like his left and right hand. He uses both.â€
- St Catherine of Siena
“When one door of happiness closes, another opens, but often we took so long at the closed door that we do not see the one that has been opened up for usâ€
- Helen Keller
“We don’t see the things the way they are. We see things the way WE are.â€
- Talmund
“Formal education will make you a living. Self education will make you a fortune.â€
- Jim Rohn
“It isn’t what the book costs. It’s what it will cost you if you don’t read it.â€
- Jim Rohn
“You must be the change you want to see in the world.â€
- Mahatma Gandhi
“The future has several names. For the weak, it is the impossible. For the fainthearted, it is the unknown. For the thoughtful and valiant, it is the ideal.â€
- Victor Hugo
“There is nothing more genuine than breaking away from the chorus to learn the sound of your own voice.â€
- Po Bronson
“Do not go where the path may lead, go instead where there is no path and leave a trail.â€
- Waldo Emerson
“Use what talents you possess, the woods will be very silent if no birds sang there except those that sang best.â€
- Henry van Dyke
“Do not fear to be eccentric in opinion, for every opinion now accepted was once eccentric.â€
- Bertrand Russell
Preventing SQL Injection Attacks with MySQL and PHP
Most new web developers have heard of SQL injection attacks, but not very many know that it is fairly easy to prevent an attacker from gaining access to your data by filtering out the vulnerabilities using MySQL extensions found in PHP. An SQL injection attack occurs when a hacker or cracker (a malicious hacker) attempts to dump the data in a database table in a database-driven web site. In an unprotected and vulnerable site, this is pretty easy to do.
In order for an SQL injection attack to work, the site must use an unprotected SQL query that utilizes data submitted by a user to lookup something in a database table. The data could be from a search box, a login form or any type of query used to look up data.
For Example:
Generally when you login, the query like this :
SELECT * FROM tbl_name WHERE username=’value1‘ and password=’value2‘
Normally, you would expect a user to submit a username and password. But what if someone used the following instead of a password?
‘ OR ’1′ =’1
That would make the query used to look for the password look like this:
SELECT * FROM tbl_name WHERE username=’value1‘ and password=’value2′ OR ’1′ = ’1′
Your username and password is rightor wrong but this would always return a true.
Prevention of SQL injection
Use the following function to add backslashes to suspect characters and filter any data that is input by a user.
{
if(get_magic_quotes_gpc())Â // prevents duplicate backslashes
{
$string = stripslashes($string);
}
if (phpversion() >= ’4.3.0′)
{
$string = mysql_real_escape_string($string);
}
else
{
$string = mysql_escape_string($string);
}
return $string;
}
You can filter a data like this : Continue reading »




