Exchange Rate tool for PHP

March 22nd, 2009

Hi frens, in this post  i am showing you all a simple Currency Exchange rate tool which can be used in any site for currency conversion.  It is very simple to use, as simple as copy and paste the four line code where you want to show the currency conversion tool. I found this exchange too in http://www.iraqidinar.org.

For PHP you need nothing complex to do simply copy the code shown below and paste it in your php file using html editor. This code can be positioned on your page using html center, paragraph, or table tags.

admin Uncategorized

What is Recession?

March 16th, 2009

This story is about a man who once upon a time was selling Hotdogs by the roadside. He was illiterate, so he never read newspapers. He was hard of hearing, so he never listened to the radio. His eyes were weak, so he never watched television. But enthusiastically, he sold lots of hotdogs.

He was smart enough to offer some attractive schemes to increase his sales. His sales and profit went up. He ordered more a more raw material and buns and sold more. He recruited more supporting staff to serve more customers. He started offering home deliveries. Eventually he got himself a bigger and better stove. As his business was growing, the son, who had recently graduated from college, joined his father.

admin Other , ,

Password protecting your directory using .htaccess

February 26th, 2009

Hi friends, in my previous post about htaccess i have mentioned what is it and what can be its uses. In this post i am showing you all one practical example of htaccess.
One of the use of htaccess is password protecting the directory. You all can password
protect the directory easily through control panel, but some time you may need to password protect you directory and you may not have the access to the control panel. In such case htaccess file comes handy.
Syntax to be written in htaccess file for password protecting any dierctory >>

admin .htaccess , , , , , , , , ,

Because George still had the axe in is hand…(Fun to read)

February 14th, 2009

GIRL : If we become engaged will you give me a ring??

BOY : Sure, what’s your phone number??

GIRL : I think the poorest people are the happiest.

BOY : Then marry me and we’ll be the happiest couple

GIRL : Darling, I want to dance like this forever.

BOY : Don’t you ever want to improve??

BOY : I love you and I could die for you!

GIRL : How soon??

BOY : I would go to the end of the world for you!

GIRL : Yes, but would you stay there??

admin Humour , , , ,

Credit Card Validation

February 3rd, 2009

Hi friends in this post i am talking about the credit card validation which is a basic need for any e-commerce sites. I have included a javascript file that validates credit card number given by the user according to the credit card type. But the function provided here only validates the credit card number specified by the supplied parameters containing the card number and card type. However, this function does not verify credit card which is only possible with in the server.

Here are some credit card numbers in a valid format:

American Express 3400 0000 0000 009

admin javascript , , , , , , , , , , ,

Creating Secure PHP login script (SQL injection proof)

January 31st, 2009

Hi friends, in this post i am showing you all how to make our login system secure and SQLinjection proof.
Our trend of coding for login system looks something like this:
$sql= “select fieldlist from table_name where username=’$_POST['username']‘and password=’$_POST['password']‘;
$data=mysql_query($sql);
if(mysql_num_rows($data)>0)
{
header(”location:yourpage.php”);
}
else
echo “YOur information invalid”;

This code works well and looks good enough unless it is SQL injected.This code is not sql injection proof.

The basic idea of SQL injection is to convience the application to run SQL code that was not intended.
How?? lets see here

admin PHP , , ,

WordPress Loves AJAX