Selecting database using alternative methods in PHP
Most of the time we use mysql_select_db() to select a mysql database, the syntax is
mysql_select_db( db_name, connection );
The above syntax results a boolean value, i.e. either true (1) or false(0).
Alternatively, you can use MySQL command:
USE database_name
Let me show you how to use it with PHP. You can implement the above MySQL command as with other MySQL commands
For example,
$query = "USE database_name;";
mysql_query($query, $connection);
This will select the database named database_name.
Was this information helpful. Have you ever used this? Comment here in HackTweaks.com
Making PHP login more secure with some tweaks in MD5 hashing
There are several methods to make your login script secure. The most crucial step for that is obviously to escape strings using real_escape_string() function that varies from the PHP version. This will get you rid of some common SQL injection attacks via form or address bar.
Another thing you must make secure is the user password. When talking about PHP and database, anything that comes in our mind is md5 hashing and password encryption. The most basic step we use is to encrypt the user password while registering in the internet.
For example,
md5($password);
This will generate the md5 hash of any value replaced by the variable...
Download Files directly to your web host server faster and easier
Needless to say that it's a hectic job to download and upload a file from some website to your hard drive and again upload and extract it to your server. Imagine how much time are you loosing in this process. But imagine how you can save your time by directly downloading it to your own web server. While your web server always have larger download speed as compared to your home/office PC.
There are several ways to access the terminal of your web server/host. But we are focusing on SSH (Secure Shell) method. Secure Shell is one of the alternative of telnet terminal. Secure shell is itself a secured access terminal. To acces and...
saaZine Magazine WordPress theme Giveaway
A month ago we launched saaZine Magazine theme for Wordpress. The price for the premium template was $32. But now we are giving it free for limited number of our blog visitors.
To know more about saaZine magazine read it here.
Hurry up comment here and request for saaZine Magazine Template with your email address.
Note: We expect the footer note to be fixed there as a credit and appreciation from your side.
View the demo here
Norton Internet Security 2011
Antivirus software is a must for every personal computer while using the internet. Generally the antivirus software provides protection against viruses, malwares, email spams etc. The Symantec Corporation has been providing its best in the antivirus software that it releases and the Norton Internet Security 2011 which is the latest. This antivirus software is not only compatible with windows Operating system but also the Macintosh systems also.
The Norton Internet Security 2011 has improved a lot in its services. The reputation-based defenses is added which can check for untrusted or uncommon files and gives a trust level for the...
8 Printer Tweaks That Will Save You Time and Money
Printing, scanning, and copying are easy tasks that can take an unnecessarily large amount of time. Many professionals spend a decent portion of their day over by the printer, simply waiting for their tasks to be completed, while they could be using their time in a more productive manner.
However, printers not only require time, they also require money. Printer ink, paper, and upkeep can be expensive, especially for those making no additional effort to conserve these resources. This is why it is important for professionals to tweak their printer, in order to save them both time and money.
Eight Ways to Save Printing Time and Money
#1....
How to change your Facebook Upload Email Address – account hacked
You have many "likes" in your Facebook wall post, haven't you? But what will you do when your friend's complains about your non-sense links in your wall post? Refer to the image below which I've encountered just few hours ago.
The above image excerpt is from my profile page where it says, " I just saw Miley Cyrus enjoying in public with her new boyfriend :O --->> <Link to the website>.
Facebook shows the short information about the source of the post whenever you update it from anywhere except Facebook from your computer browser.
[caption id="attachment_618" align="aligncenter" width="360" caption="A comment posted...
Designing a webpage using Adobe Fireworks CS3
The mock ups are the prototype models for a web page to be designed. This can be very useful in order to verify whether the mock up satisfies the client’s needs and if the changes are required, then it will be implemented in the original web page design. The webpage mock ups are designed by different type of software and the Firework from the Adobe Company provides many facilities to design the mock ups with ease.
Some of the features included in the Adobe Fireworks CS3 are like pages, improvised symbols, file interoperability, slide show facility etc. The pages are similar to the webpages where elements can be added and master...
Learn how to hack with Ethical Hacking Guide
Any one running a website related to Hacking gets this question asked daily "How to Hack?"Most of us are curious to learn hacking but dont know where to start,so I am writing this article for all those people who want to Learn Hacking and dont know where to start or want to Learn Hacking from Basics
While surfing on web I came across a Book "A Beginners Guide To Ethical Hacking", The book was so simple that even a D-Grade Script kiddie can become a master Hacker
read more...